diff --git a/.antora/antora.yml b/.antora/antora.yml index e091a64..009e10a 100644 --- a/.antora/antora.yml +++ b/.antora/antora.yml @@ -3,6 +3,7 @@ name: asamosi version: # Update version number accordingly. This is the version for the main branch main: 'current' + master: 'current' v(*)-antora: V$1 v(*): V$1 V(*): V$1 diff --git a/.github/workflows/antora-generator.yml b/.github/workflows/antora-generator.yml new file mode 100644 index 0000000..6811b1d --- /dev/null +++ b/.github/workflows/antora-generator.yml @@ -0,0 +1,28 @@ + +name: Antora build trigger + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + trigger_antora: + name: Trigger antora generator + + runs-on: Ubuntu-latest + + env: + MUP_KEY: ${{ secrets.MACHINE_USER_PAT }} + + steps: + - name: Trigger generator + if: ${{ env.MUP_KEY != '' }} + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.MACHINE_USER_PAT }} + event-type: antora-build-trigger + repository: OpenSimulationInterface/osi-antora-generator + client-payload: '{"src": "${{ github.repository }}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "head_ref": "${{ github.head_ref }}"}' + diff --git a/.github/workflows/protobuf.yml b/.github/workflows/protobuf.yml index c001949..8b9f311 100644 --- a/.github/workflows/protobuf.yml +++ b/.github/workflows/protobuf.yml @@ -11,7 +11,7 @@ jobs: build-osmp-examples: name: Build OSMP examples - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 steps: - name: Checkout OSI @@ -27,10 +27,10 @@ jobs: # cache dependencies - name: Cache Dependencies id: cache-depends - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: protobuf-3.15.8 - key: ${{ runner.os }}-v1-depends + key: ${{ runner.os }}-v2-depends # Download and build protobuf - name: Download ProtoBuf