From 0a7e3dd25100e6e192faa52c0d371398229ee5cc Mon Sep 17 00:00:00 2001 From: Gabe Rodriguez Date: Thu, 14 Mar 2024 11:11:58 +0100 Subject: [PATCH] Fix ext publish ci (#759) * Test publish flow * mimic turbo.ci * try 3 * concurrency * modify original * rdy --- .github/workflows/extension-publish.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/extension-publish.yml b/.github/workflows/extension-publish.yml index f8ecd8f98b..9a261d8174 100644 --- a/.github/workflows/extension-publish.yml +++ b/.github/workflows/extension-publish.yml @@ -14,19 +14,23 @@ on: workflow_dispatch: jobs: - compile: + turbo-compile: + name: Compile uses: ./.github/workflows/compile-wasm.yml publish: environment: ext-publish - runs-on: buildjet-16vcpu-ubuntu-2204 - needs: compile + name: Publish extension + runs-on: buildjet-4vcpu-ubuntu-2204 + needs: turbo-compile steps: - uses: actions/checkout@v4 - - uses: buildjet/cache@v3 + - id: built + uses: buildjet/cache@v3 with: path: .turbo + key: ${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-built restore-keys: ${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-compiled - uses: pnpm/action-setup@v2 - uses: buildjet/setup-node@v4 @@ -35,10 +39,11 @@ jobs: cache: 'pnpm' - run: pnpm install --frozen-lockfile - run: pnpm turbo telemetry disable - - run: pnpm turbo download-keys --force --cache-dir=.turbo - run: pnpm turbo build --cache-dir=.turbo + - name: Package up extension run: zip -r dist.zip apps/extension/dist + - name: Upload & release uses: penumbra-zone/chrome-extension-upload@v1 with: