File tree 1 file changed +31
-0
lines changed
1 file changed +31
-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
+ steps :
17
+ - name : Checkout
18
+ uses : actions/checkout@v3
19
+ with :
20
+ ref : docs-build
21
+ fetch-depth : 1
22
+ - name : Dispatch (partial build)
23
+ if : github.ref_type == 'branch'
24
+ env :
25
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26
+ run : gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
27
+ - name : Dispatch (full build)
28
+ if : github.ref_type == 'tag'
29
+ env :
30
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
+ 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