Skip to content

Commit 08244ee

Browse files
committed
upload artifacts when publishing
1 parent 082f307 commit 08244ee

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,30 @@ jobs:
3535
npm run zip:firefox
3636
npm run zip
3737
38+
- name: Resolve zip extension paths
39+
id: paths
40+
run: |
41+
MV2_PATH=$(find .output -type f -name "*-mv2.zip")
42+
MV2_NAME=$(basename $MV2_PATH)
43+
MV3_PATH=$(find .output -type f -name "*-mv3.zip")
44+
MV3_NAME=$(basename $MV3_PATH)
45+
echo "mv2_path=$MV2_PATH" >> "$GITHUB_OUTPUT"
46+
echo "mv2_name=$MV2_NAME" >> "$GITHUB_OUTPUT"
47+
echo "mv3_path=$MV3_PATH" >> "$GITHUB_OUTPUT"
48+
echo "mv3_name=$MV3_NAME" >> "$GITHUB_OUTPUT"
49+
50+
- name: Upload mv2 as artifact
51+
uses: actions/upload-artifact@v5
52+
with:
53+
name: ${{ steps.paths.outputs.mv2_name }}
54+
path: ${{ steps.paths.outputs.mv2_path }}
55+
56+
- name: Upload mv3 as artifact
57+
uses: actions/upload-artifact@v5
58+
with:
59+
name: ${{ steps.paths.outputs.mv3_name }}
60+
path: ${{ steps.paths.outputs.mv3_path }}
61+
3862
- name: Upload to latest release
3963
if: github.event.inputs.dry_run != 'true'
4064
uses: svenstaro/upload-release-action@v2

0 commit comments

Comments
 (0)