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 4ef0e44
Show file tree
Hide file tree
Showing 2 changed files with 25,440 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/sw-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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 ===
- name: Deploy to Cloudflare Pages
id: cloudflare_deployment
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: 'w3o'
gitHubToken: ${{ secrets.GH_AUTOMATION_TOKEN }}
branch: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || github.ref_name }}
directory: './packages/demo/.next'
wranglerVersion: '3'
Loading

0 comments on commit 4ef0e44

Please sign in to comment.