Skip to content

Commit

Permalink
ci: specify only one file for upload-artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Jun 21, 2024
1 parent 5894c3e commit 5405ea6
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,27 @@ jobs:
run: pnpm i --frozen-lockfile --ignore-scripts

- name: Build zip for Chrome
if: steps.dependencies.outcome == 'success'
run: pnpm run zip:chrome "${{ github.sha }}"
id: chrome-zip
run: |
pnpm run zip:chrome "${{ github.sha }}"
CHROME_ZIP_PATH=$(ls package/*-chrome*.zip)
echo "path=$CHROME_ZIP_PATH" >> $GITHUB_OUTPUT
- name: Add zip for Chrome as artifact
if: steps.dependencies.outcome == 'success'
uses: actions/upload-artifact@v4
with:
name: chrome-extension
path: package/*-chrome*
path: ${{ steps.chrome-zip.outputs.path }}

- name: Build zip for Firefox
if: steps.dependencies.outcome == 'success'
run: pnpm run zip:firefox "${{ github.sha }}"
id: firefox-zip
run: |
pnpm run zip:firefox "${{ github.sha }}"
FIREFOX_ZIP_PATH=$(ls package/*-firefox*.zip)
echo "path=$FIREFOX_ZIP_PATH" >> $GITHUB_OUTPUT
- name: Add zip for Firefox as artifact
if: steps.dependencies.outcome == 'success'
uses: actions/upload-artifact@v4
with:
name: firefox-extension
path: package/*-firefox*
path: ${{ steps.firefox-zip.outputs.path }}

0 comments on commit 5405ea6

Please # to comment.