File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Docs
2
+ on :
3
+ push :
4
+ branches-ignore : [ gh-pages ]
5
+ tags : ' **'
6
+ repository_dispatch :
7
+ types : request-build-reference # legacy
8
+ schedule :
9
+ - cron : ' 0 10 * * *' # Once per day at 10am UTC
10
+ workflow_dispatch :
11
+ permissions :
12
+ actions : write
13
+ jobs :
14
+ build :
15
+ runs-on : ubuntu-latest
16
+ # if: github.repository_owner == 'spring-projects'
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v3
20
+ with :
21
+ ref : docs-build
22
+ fetch-depth : 1
23
+ - name : Dispatch (partial build)
24
+ if : github.ref_type == 'branch'
25
+ env :
26
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
+ run : gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
28
+ - name : Dispatch (full build)
29
+ if : github.ref_type == 'tag'
30
+ env :
31
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
+ 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