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 Portfolio
2-
1+ name : Deploy static content to Pages
32on :
43 push :
5- branches :
6- - main
7-
4+ branches : ['main']
5+ workflow_dispatch :
86permissions :
9- contents : write
7+ contents : read
108 pages : write
119 id-token : write
12-
10+ concurrency :
11+ group : ' pages'
12+ cancel-in-progress : true
1313jobs :
14- build-and-deploy :
14+ deploy :
15+ environment :
16+ name : github-pages
17+ url : ${{ steps.deployment.outputs.page_url }}
1518 runs-on : ubuntu-latest
16-
1719 steps :
18- - name : Checkout code
19- uses : actions/checkout@v4
20-
21- - name : Set up Node.js
22- uses : actions/setup-node@v4
20+ - name : Checkout
21+ uses : actions/checkout@v5
22+ - name : Setup Node
23+ uses : actions/setup-node@v6
2324 with :
24- node-version : 18
25-
25+ node-version : lts/*
26+ cache : ' npm '
2627 - name : Install dependencies
27- run : npm install
28-
29- - name : Build project
28+ run : npm ci
29+ - name : Build
3030 run : npm run build
31-
31+ - name : Setup Pages
32+ uses : actions/configure-pages@v5
3233 - name : Upload artifact
33- uses : actions/upload-pages-artifact@v3
34+ uses : actions/upload-pages-artifact@v4
3435 with :
35- path : ./build
36-
36+ path : ' ./dist'
3737 - name : Deploy to GitHub Pages
38+ id : deployment
3839 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments