File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Docs
2+ on :
3+ workflow_dispatch :
4+ push :
5+ branches : [main, '[0-9].[0-9].x' ]
6+ tags : ['v[0-9].[0-9].[0-9]', 'v[0-9].[0-9].[0-9]-*']
7+ permissions :
8+ actions : write
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ if : github.repository_owner == 'spring-projects-experimental'
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v4
16+ with :
17+ ref : docs-build
18+ fetch-depth : 1
19+ - name : Dispatch (partial build)
20+ if : github.ref_type == 'branch'
21+ env :
22+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23+ run : gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
24+ - name : Dispatch (full build)
25+ if : github.ref_type == 'tag'
26+ env :
27+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ run : gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD)
You can’t perform that action at this time.
0 commit comments