File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ # Simple workflow for deploying static content to GitHub Pages
2+ name : Deploy static content to Pages
3+
4+ on :
5+ # Allows you to run this workflow manually from the Actions tab
6+ workflow_dispatch :
7+
8+ # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ # Allow one concurrent deployment
15+ concurrency :
16+ group : ' pages'
17+ cancel-in-progress : true
18+
19+ jobs :
20+ # Single deploy job since we're just deploying
21+ deploy :
22+ environment :
23+ name : github-pages
24+ url : ${{ steps.deployment.outputs.page_url }}
25+ runs-on : ubuntu-latest
26+ steps :
27+ - name : Checkout
28+ uses : actions/checkout@v5
29+ - name : Set up Node
30+ uses : actions/setup-node@v5
31+ with :
32+ node-version : lts/*
33+ cache : ' npm'
34+ - name : Install dependencies
35+ run : npm ci
36+ - name : Build
37+ run : npm run build
38+ - name : Setup Pages
39+ uses : actions/configure-pages@v5
40+ - name : Upload artifact
41+ uses : actions/upload-pages-artifact@v4
42+ with :
43+ # Upload dist folder
44+ path : ' ./dist'
45+ - name : Deploy to GitHub Pages
46+ id : deployment
47+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments