Skip to content

Commit b32ef68

Browse files
authored
Trigger docs after release (#1069)
<!-- Reference any GitHub issues resolved by this PR --> Closes #1045 ## Introduced changes <!-- A brief description of the changes --> - Made `docs.yml` workflow reusable: https://docs.github.com/en/actions/using-workflows/reusing-workflows - Used `docs.yml` workflow as a step in `release.yml` ## Checklist <!-- Make sure all of these are complete --> - [x] Linked relevant issue - [x] Updated relevant documentation - [x] Added relevant tests - [x] Performed self-review of the code - [x] Added changes to `CHANGELOG.md`
1 parent 6018dd4 commit b32ef68

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
name: Deploy mdBook site to Pages
44

55
on:
6-
# Runs on release
7-
release:
8-
types: [ released ]
6+
# Allows using this workflow in other workflows
7+
workflow_call:
98

109
# Allows you to run this workflow manually from the Actions tab
1110
workflow_dispatch:

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,12 @@ jobs:
170170
env:
171171
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
172172
TAG: ${{ steps.create-release.outputs.computed-prefix }}${{ steps.create-release.outputs.version }}
173+
174+
deploy-docs:
175+
name: Deploy documentation
176+
needs: create-release
177+
permissions:
178+
contents: read
179+
pages: write
180+
id-token: write
181+
uses: ./.github/workflows/docs.yml

0 commit comments

Comments
 (0)