File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 1- # Simple workflow for deploying static content to GitHub Pages
21name : Deploy static content to Pages
32
43on :
54 # Runs on pushes targeting the default branch
65 push :
76 branches : ['main']
8-
97 # Allows you to run this workflow manually from the Actions tab
108 workflow_dispatch :
119
@@ -21,31 +19,35 @@ concurrency:
2119 cancel-in-progress : true
2220
2321jobs :
24- # Single deploy job since we're just deploying
2522 deploy :
2623 environment :
2724 name : github-pages
2825 url : ${{ steps.deployment.outputs.page_url }}
2926 runs-on : ubuntu-latest
3027 steps :
31- - name : Checkout
28+ - name : Checkout repository
3229 uses : actions/checkout@v4
30+
3331 - name : Set up Node
3432 uses : actions/setup-node@v3
3533 with :
3634 node-version : 18
3735 cache : ' npm'
36+
3837 - name : Install dependencies
3938 run : npm install
40- - name : Build
39+
40+ - name : Build the site
4141 run : npm run build
42- - name : Setup Pages
43- uses : actions/configure-pages@v3
44- - name : Upload artifact
42+
43+ - name : Verify dist folder
44+ run : ls -l ./dist
45+
46+ - name : Upload artifact for Pages
4547 uses : actions/upload-pages-artifact@v2
4648 with :
47- # Upload dist repository
4849 path : ' ./dist'
50+
4951 - name : Deploy to GitHub Pages
5052 id : deployment
51- uses : actions/deploy-pages@v2
53+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments