Skip to content

Commit

Permalink
add gh-pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arobsn committed Jan 29, 2024
1 parent dbc4b32 commit 9b57198
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions packages/snap/.github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy

on:
push:
branches:
- deploy

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile

- name: Build
run: pnpm --filter ui build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: packages/ui/dist
# cname: sigmafi.app # if wanna deploy to custom domain

0 comments on commit 9b57198

Please sign in to comment.