Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure the doc publishing CI #10

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}" }'