Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ext publish ci #759

Merged
merged 6 commits into from
Mar 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading