Skip to content

Commit

Permalink
Merge pull request #18 from SolidLabResearch/cicd-add-workflow-folder
Browse files Browse the repository at this point in the history
add build step in ci/cd for deploying
  • Loading branch information
eliasnijs authored Feb 28, 2024
2 parents 43e4c6e + bfdc518 commit 82d9847
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,55 @@ concurrency:
cancel-in-progress: false

jobs:

build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Install and Build
run: |
cd solid-watchparty/
npm install
npm run build
- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: dist
path: './dist/'

# Single deploy job since we're just deploying
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download Build Artifact
uses: actions/download-artifact@v3
with:
name: dist
path: './dist/'

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
path: './dist/'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 82d9847

Please sign in to comment.