Skip to content

Commit

Permalink
Fix ext publish ci
Browse files Browse the repository at this point in the history
  • Loading branch information
grod220 committed Mar 14, 2024
1 parent 43e03d7 commit fe4887f
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/extension-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,24 @@
# https://chrome.google.com/webstore/detail/penumbra-wallet/lkpmkhpnhknhmibgnmmhdhgdilepfghe
name: Publish extension

# Temp for testing
on:
push:
tags:
- '*-?v[0-9]+*'
workflow_call:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
compile:
turbo-compile:
name: Compile
uses: ./.github/workflows/compile-wasm.yml

publish:
environment: ext-publish
runs-on: buildjet-16vcpu-ubuntu-2204
needs: compile
needs: turbo-compile

steps:
- uses: actions/checkout@v4
Expand All @@ -34,16 +37,12 @@ jobs:
node-version: '21'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- 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:
file-path: dist.zip
extension-id: lkpmkhpnhknhmibgnmmhdhgdilepfghe
client-id: ${{ secrets.GOOGLE_CLIENT_ID }}
client-secret: ${{ secrets.GOOGLE_CLIENT_SECRET }}
refresh-token: ${{ secrets.GOOGLE_REFRESH_TOKEN }}

0 comments on commit fe4887f

Please sign in to comment.