File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ # Via: https://github.com/SamStephens/nanoc-build-pages
2+ name : Build and deploy to Github pages
3+
4+ permissions :
5+ contents : read
6+ pages : write
7+ id-token : write
8+
9+ on :
10+ push :
11+ branches :
12+ - master
13+
14+ # Workflow with two jobs: "Build" then "Deploy"
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : ' Checkout'
20+ uses : actions/checkout@v3
21+ with :
22+ submodules : recursive
23+ - name : ' Build page with Nanoc'
24+ uses : SamStephens/nanoc-build-pages@v2
25+ with :
26+ source : ./
27+ - name : ' Upload artifact'
28+ uses : actions/upload-pages-artifact@v1
29+ with :
30+ path : ./output
31+
32+ deploy :
33+ needs : build
34+ runs-on : ubuntu-latest
35+ environment :
36+ name : github-pages
37+ url : ${{ steps.deployment.outputs.page_url }}
38+ steps :
39+ - name : ' Deploy to GitHub Pages'
40+ id : deployment
41+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments