forked from BewlyBewly/BewlyBewly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: separate upload step (BewlyBewly#756)
- Loading branch information
Showing
2 changed files
with
45 additions
and
11 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 |
---|---|---|
|
@@ -44,14 +44,3 @@ jobs: | |
FIREFOX_EXTENSION_ID: ${{ secrets.FIREFOX_EXTENSION_ID }} | ||
FIREFOX_JWT_ISSUER: ${{ secrets.FIREFOX_JWT_ISSUER }} | ||
FIREFOX_JWT_SECRET: ${{ secrets.FIREFOX_JWT_SECRET }} | ||
|
||
- name: Upload assets to a Release | ||
uses: meeDamian/[email protected] | ||
with: | ||
tag: v0.18.5 | ||
files: | | ||
extension.zip | ||
extension-firefox.zip | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
allow_override: true | ||
gzip: false |
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,45 @@ | ||
name: Upload extension zip on release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set node lts/* | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
run_install: | | ||
- args: [--frozen-lockfile] | ||
- name: Build | ||
run: | | ||
pnpm build | ||
pnpm build-firefox | ||
- name: Build Extension | ||
run: | | ||
pnpm pack:zip | ||
pnpm pack:zip-firefox | ||
- name: Upload assets to a Release | ||
uses: meeDamian/[email protected] | ||
with: | ||
files: | | ||
extension.zip | ||
extension-firefox.zip | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
allow_override: true | ||
gzip: false |