diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index ad732a284f..7448412a45 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,6 +17,9 @@ concurrency: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./packages/playground steps: - name: Checkout uses: actions/checkout@v3 @@ -22,19 +27,19 @@ jobs: 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: