Skip to content

Commit

Permalink
Update auto build
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiendekaco committed Feb 2, 2024
1 parent c898b7f commit 95476ba
Show file tree
Hide file tree
Showing 2 changed files with 25,439 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/sw-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: SubWallet Build
on:
pull_request:
branches:
- main
- sw-dev
push:
branches:
- main
- sw-dev

jobs:
master:
if: "! startsWith(github.event.head_commit.message, '[CI Skip]')"
runs-on: ubuntu-22.04
name: Build and Deploy
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: Build
id: build
run: |
yarn install
yarn build
# === Deploy static pages ===
# deploy app to vercel
- name: deploy site to vercel
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
github-token: ${{ secrets.GITHUB_TOKEN }} #Optional
vercel-args: '--prod' #Optional
vercel-org-id: ${{ secrets.ORG_ID}} #Required
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
directory: './packages/demo'
Loading

0 comments on commit 95476ba

Please sign in to comment.