Skip to content

Commit

Permalink
Fix ext publish ci (#759)
Browse files Browse the repository at this point in the history
* Test publish flow

* mimic turbo.ci

* try 3

* concurrency

* modify original

* rdy
  • Loading branch information
grod220 authored Mar 14, 2024
1 parent 43e03d7 commit 0a7e3dd
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/extension-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 0a7e3dd

Please sign in to comment.