From c5882c163fb9baef853169f8b8741f897fda6ae6 Mon Sep 17 00:00:00 2001 From: Jungho Bang Date: Mon, 16 Sep 2024 16:16:56 -0700 Subject: [PATCH] deploy script --- .github/workflows/build-and-deploy.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index ad732a284f..0085cd58f1 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -2,6 +2,8 @@ name: Deploy Coinbase Wallet SDK Playground to Pages on: workflow_dispatch: + push: + branches: [master] permissions: contents: read @@ -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: