Skip to content

Commit

Permalink
ci: separate upload step (BewlyBewly#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed May 12, 2024
1 parent 9b94a4d commit 2c4814a
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/release-it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
45 changes: 45 additions & 0 deletions .github/workflows/release-upload.yml
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

0 comments on commit 2c4814a

Please sign in to comment.