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 1ec517b commit c5882c1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 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
node-version-file: '.nvmrc'
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: ./out

deploy:
environment:
Expand Down

0 comments on commit c5882c1

Please sign in to comment.