File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ # Review GitHub Actions docs if you want to further define triggers, paths, etc.
8+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9+
10+ jobs :
11+ build :
12+ name : Build HTML
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : 18
21+ cache : npm
22+
23+ - name : Install dependencies
24+ run : npm ci
25+
26+ - name : Build website
27+ run : npm run build
28+
29+ - name : Upload Build Artifact
30+ uses : actions/upload-pages-artifact@v3
31+ with :
32+ path : build
33+
34+ deploy :
35+ name : Deploy to GitHub Pages
36+ needs : build
37+
38+ # Grant GITHUB_TOKEN the permissions required to make a Page deployment
39+ permissions :
40+ pages : write # to deploy to Pages
41+ id-token : write # to verify the deployment originates from an appropriate source
42+
43+ # Deploy to the GitHub-pages environment
44+ environment :
45+ name : github-pages
46+ url : ${{ steps.deployment.outputs.page_url }}
47+
48+ runs-on : ubuntu-latest
49+ steps :
50+ - name : Deploy to GitHub Pages
51+ id : deployment
52+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments