Skip to content

Commit

Permalink
Restructure the doc publishing CI (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostrzyciel authored Jul 3, 2024
1 parent 3ee9f27 commit db5e148
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

jobs:
pre-release:
release:
name: "Pre-release"
runs-on: "ubuntu-latest"
steps:
Expand All @@ -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
21 changes: 18 additions & 3 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- "v*"

jobs:
pre-release:
release:
name: "Tagged release"
runs-on: "ubuntu-latest"
steps:
Expand All @@ -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 }}" }'

0 comments on commit db5e148

Please sign in to comment.