-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Publishes extension to chrome web store when a release is made in github. | ||
|
||
# `maniftest.json` should already be updated to the desired version before release. | ||
# make sure download-proving-keys contains the correct version tag. | ||
|
||
# https://chrome.google.com/webstore/detail/penumbra-wallet/lkpmkhpnhknhmibgnmmhdhgdilepfghe | ||
name: Test Publish flow | ||
|
||
# Temp for testing | ||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
turbo-compile: | ||
name: Compile | ||
uses: ./.github/workflows/compile-wasm.yml | ||
|
||
publish: | ||
environment: ext-publish | ||
runs-on: buildjet-16vcpu-ubuntu-2204 | ||
needs: turbo-compile | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: buildjet/cache@v3 | ||
with: | ||
path: .turbo | ||
restore-keys: ${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-compiled | ||
- uses: pnpm/action-setup@v2 | ||
- uses: buildjet/setup-node@v4 | ||
with: | ||
node-version: '21' | ||
cache: 'pnpm' | ||
- run: pnpm install --frozen-lockfile | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: wasm32-unknown-unknown | ||
- uses: jetli/wasm-pack-action@v0.4.0 # preinstall wasm-pack | ||
with: | ||
version: 'latest' | ||
- 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 |