File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy Hugo to Pages
2+
3+ on :
4+ push :
5+ branches : [main]
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : pages
15+ cancel-in-progress : false
16+
17+ jobs :
18+ build :
19+ runs-on : ubuntu-latest
20+ env :
21+ HUGO_VERSION : 0.161.1
22+ steps :
23+ - name : Install Hugo
24+ run : |
25+ wget -q -O hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb
26+ sudo dpkg -i hugo.deb
27+ - uses : actions/checkout@v6.0.2
28+ - uses : actions/configure-pages@v6.0.0
29+ - name : Build
30+ run : hugo --minify --gc
31+ - uses : actions/upload-pages-artifact@v5.0.0
32+ with :
33+ path : ./public
34+
35+ deploy :
36+ needs : build
37+ runs-on : ubuntu-latest
38+ environment :
39+ name : github-pages
40+ url : ${{ steps.deployment.outputs.page_url }}
41+ steps :
42+ - id : deployment
43+ uses : actions/deploy-pages@v5.0.0
You can’t perform that action at this time.
0 commit comments