diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 4935af2..b880361 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -6,7 +6,7 @@ on: - main jobs: - pre-release: + release: name: "Pre-release" runs-on: "ubuntu-latest" steps: @@ -24,3 +24,15 @@ jobs: name: "Development build" artifacts: '*.proto' generateReleaseNotes: true + + trigger-doc-update: + needs: release + name: "Trigger documentation update" + runs-on: "ubuntu-latest" + steps: + - name: "Trigger repository_dispatch" + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.PAT_DOC_REPO_HOOKS }} + repository: RDF-STaX/rdf-stax.github.io + event-type: publish-docs-dev diff --git a/.github/workflows/tagged-release.yml b/.github/workflows/tagged-release.yml index 792bf12..78b0fe6 100644 --- a/.github/workflows/tagged-release.yml +++ b/.github/workflows/tagged-release.yml @@ -6,7 +6,7 @@ on: - "v*" jobs: - pre-release: + release: name: "Tagged release" runs-on: "ubuntu-latest" steps: @@ -18,7 +18,22 @@ jobs: prerelease: false draft: false makeLatest: true - tag: "${{ env.GITHUB_REF_NAME }}" - name: "${{ env.GITHUB_REF_NAME }}" + tag: "${{ github.ref_name }}" + name: "${{ github.ref_name }}" artifacts: '*.proto' generateReleaseNotes: true + + trigger-doc-update-tagged: + needs: release + # Only run this for actual tagged releases, not beta or alpha releases + if: ${{ ! contains( github.ref_name, '-' ) }} + name: "Trigger documentation update (tagged)" + runs-on: "ubuntu-latest" + steps: + - name: "Trigger repository_dispatch" + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.PAT_DOC_REPO_HOOKS }} + repository: RDF-STaX/rdf-stax.github.io + event-type: publish-docs-tagged + client-payload: '{ "tag": "${{ github.ref_name }}" }'