Skip to content

Commit

Permalink
chore: add build and deployment to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Mar 25, 2024
1 parent 54633c7 commit daeeabc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
build:
runs-on: ubuntu-latest

permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -45,3 +49,17 @@ jobs:
# name: coverage
# path: ./coverage
# if-no-files-found: ignore

- name: Build
run: pnpm run build

- name: Upload playground artifacts
# https://github.com/actions/upload-pages-artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./packages/playground/dist"

- name: Deploy GitHub Pages
if: github.ref == 'refs/heads/main'
# https://github.com/actions/deploy-pages
uses: actions/deploy-pages@v4

0 comments on commit daeeabc

Please sign in to comment.