Skip to content

Commit 82d9847

Browse files
authored
Merge pull request #18 from SolidLabResearch/cicd-add-workflow-folder
add build step in ci/cd for deploying
2 parents 43e4c6e + bfdc518 commit 82d9847

1 file changed

Lines changed: 35 additions & 1 deletion

File tree

.github/workflows/static.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,55 @@ concurrency:
2222
cancel-in-progress: false
2323

2424
jobs:
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

0 commit comments

Comments
 (0)