File tree Expand file tree Collapse file tree 1 file changed +65
-0
lines changed
Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Pages
2+ on :
3+ workflow_dispatch :
4+ workflow_run :
5+ workflows : [ 'Sync doc changes' ]
6+ types :
7+ - completed
8+ push :
9+ branches : [ pages ]
10+ pull_request :
11+ branches : [ pages ]
12+
13+ permissions :
14+ contents : read
15+
16+ concurrency :
17+ group : " pages"
18+ cancel-in-progress : false
19+
20+ jobs :
21+ Build :
22+ runs-on : ubuntu-latest
23+ steps :
24+ - name : Setup
25+ run : |
26+ sudo apt-get -qq update
27+ sudo apt-get -qq install hugo
28+
29+ - name : Checkout
30+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+ with :
32+ ref : pages
33+
34+ - name : Setup Pages
35+ id : pages
36+ uses : actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
37+
38+ - name : Build with Hugo
39+ env :
40+ HUGO_BASE_URL : ${{ steps.pages.outputs.base_url }}
41+ run : pages/maint/Build.py
42+
43+ - name : Upload artifact
44+ uses : actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
45+ with :
46+ path : ./pages/public
47+
48+ Deploy :
49+ needs : Build
50+
51+ if : github.event_name != 'pull_request' && github.ref == 'refs/heads/pages'
52+
53+ permissions :
54+ pages : write # to deploy to Pages
55+ id-token : write # to verify the deployment originates from an appropriate source
56+
57+ environment :
58+ name : github-pages
59+ url : ${{ steps.deployment.outputs.page_url }}
60+
61+ runs-on : ubuntu-latest
62+ steps :
63+ - name : Deploy to GitHub Pages
64+ id : deployment
65+ uses : actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
You can’t perform that action at this time.
0 commit comments