Skip to content

Commit

Permalink
deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
bangtoven committed Sep 16, 2024
1 parent 545d834 commit 7ecdea9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Deploy Coinbase Wallet SDK Playground to Pages

on:
workflow_dispatch:
push:
branches: [master]

permissions:
contents: read
Expand All @@ -15,26 +17,29 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/playground
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
cache: yarn
cache-dependency-path: 'yarn.lock'
- name: Setup Pages
uses: actions/configure-pages@v3
with:
static_site_generator: next
- name: Install dependencies
run: yarn install
run: yarn install --immutable
- name: Build and export with Next.js
run: yarn workspace @coinbase/wallet-sdk-testapp run export
run: yarn export
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./apps/testapp/out
path: ./packages/playground/out

deploy:
environment:
Expand Down

0 comments on commit 7ecdea9

Please sign in to comment.