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 : Deployment for vue application
2-
1+ name : Deploy Github Actions Example Website
32on :
43 push :
5- branches :
6- - main
4+ branches : [main]
75
86permissions :
97 pages : write
@@ -13,22 +11,13 @@ jobs:
1311 deploy :
1412 runs-on : ubuntu-latest
1513 steps :
16- - name : Checkout code
17- uses : actions/checkout@v5
18-
19- - name : Setup node
20- uses : actions/setup-node@v5
21-
22- - name : Install packages
23- run : npm i
24-
25-
26- - name : Build project
27- run : npm run build
28-
29- # fix this issue
30- - name : Upload to GitHub Pages
31- uses : upload-pages-artifact@v4
14+ - uses : actions/checkout@v5
15+ - uses : actions/setup-node@v4
16+ with :
17+ node-version : lts/*
18+ - run : npm ci
19+ - run : npm run build
20+ - uses : actions/upload-pages-artifact@v4
3221 with :
33- path : ./dist
34- uses : actions/deploy-pages@v4
22+ path : ' ./dist'
23+ - uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments