Skip to content

Commit 27eb983

Browse files
committed
Trigger a docs build when doing a release
Closes gh-42378
1 parent 391b643 commit 27eb983

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,27 @@ jobs:
120120
with:
121121
spring-boot-version: ${{ needs.build-and-stage-release.outputs.version }}
122122
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
123+
trigger-docs-build:
124+
name: Trigger Docs Build
125+
runs-on: ubuntu-latest
126+
needs:
127+
- build-and-stage-release
128+
- sync-to-maven-central
129+
permissions:
130+
actions: write
131+
steps:
132+
- name: Run Deploy Docs Workflow
133+
env:
134+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
135+
run: gh workflow run deploy-docs.yml --repo spring-projects/spring-boot -r docs-build -f build-refname=${{ github.ref_name }} -f build-version=${{ needs.build-and-stage-release.outputs.version }}
123136
create-github-release:
124137
name: Create GitHub Release
125138
needs:
126139
- build-and-stage-release
127140
- promote-release
128141
- publish-gradle-plugin
129142
- publish-to-sdkman
143+
- trigger-docs-build
130144
- update-homebrew-tap
131145
runs-on: ${{ vars.UBUNTU_SMALL || 'ubuntu-latest' }}
132146
steps:

0 commit comments

Comments
 (0)