File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,21 +22,55 @@ concurrency:
2222 cancel-in-progress : false
2323
2424jobs :
25+
26+ build :
27+ runs-on : ubuntu-latest
28+ steps :
29+ - name : Checkout
30+ uses : actions/checkout@v4
31+
32+ - name : Setup Node.js
33+ uses : actions/setup-node@v3
34+ with :
35+ node-version : ' 16'
36+
37+ - name : Install and Build
38+ run : |
39+ cd solid-watchparty/
40+ npm install
41+ npm run build
42+
43+ - name : Upload Build Artifact
44+ uses : actions/upload-artifact@v3
45+ with :
46+ name : dist
47+ path : ' ./dist/'
48+
2549 # Single deploy job since we're just deploying
2650 deploy :
51+ needs : build
2752 environment :
2853 name : github-pages
2954 url : ${{ steps.deployment.outputs.page_url }}
3055 runs-on : ubuntu-latest
3156 steps :
3257 - name : Checkout
3358 uses : actions/checkout@v4
59+
60+ - name : Download Build Artifact
61+ uses : actions/download-artifact@v3
62+ with :
63+ name : dist
64+ path : ' ./dist/'
65+
3466 - name : Setup Pages
3567 uses : actions/configure-pages@v4
68+
3669 - name : Upload artifact
3770 uses : actions/upload-pages-artifact@v3
3871 with :
39- path : ' ./dist'
72+ path : ' ./dist/'
73+
4074 - name : Deploy to GitHub Pages
4175 id : deployment
4276 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments