File tree Expand file tree Collapse file tree 4 files changed +172
-136
lines changed
Expand file tree Collapse file tree 4 files changed +172
-136
lines changed Original file line number Diff line number Diff line change 1- # Simple workflow for deploying static content to GitHub Pages
1+ # Deploy static content to GitHub Pages
22name : Deploy static content to Pages
33
44on :
5- # Runs on pushes targeting the default branch
65 push :
76 branches : ["main"]
8-
9- # Allows you to run this workflow manually from the Actions tab
107 workflow_dispatch :
118
12- # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
139permissions :
1410 contents : read
1511 pages : write
1612 id-token : write
1713
18- # Allow one concurrent deployment
1914concurrency :
2015 group : " pages"
2116 cancel-in-progress : true
2217
2318jobs :
24- # Single deploy job since we're just deploying
2519 deploy :
2620 environment :
2721 name : github-pages
2822 url : ${{ steps.deployment.outputs.page_url }}
2923 runs-on : ubuntu-latest
24+
3025 steps :
3126 - name : Checkout
32- uses : actions/checkout@v3
27+ uses : actions/checkout@v4
28+
3329 - name : Set up Node
34- uses : actions/setup-node@v3
30+ uses : actions/setup-node@v4
3531 with :
36- node-version : 18
37- cache : " npm"
32+ node-version : 20
33+ cache : npm
34+
3835 - name : Install dependencies
39- run : npm install
40- - name : Build
36+ run : npm ci
37+
38+ - name : Build project
4139 run : npm run build
40+
4241 - name : Setup Pages
43- uses : actions/configure-pages@v3
44- - name : Upload artifact
45- uses : actions/upload-pages-artifact@v1
42+ uses : actions/configure-pages@v5
43+
44+ - name : Upload build output
45+ uses : actions/upload-pages-artifact@v3
4646 with :
47- # Upload dist repository
48- path : " ./dist "
47+ path : ./ dist
48+
4949 - name : Deploy to GitHub Pages
5050 id : deployment
51- uses : actions/deploy-pages@v1
51+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments