Skip to content

Commit 5a6a260

Browse files
committed
build and attach chrome release
1 parent 88a3842 commit 5a6a260

1 file changed

Lines changed: 35 additions & 3 deletions

File tree

.github/workflows/tag.yml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,43 @@
1-
name: Tag npm bumps
1+
name: Tag npm bumps and build release artifacts
22

33
on:
44
push:
55
branches:
66
- master
7+
78
jobs:
8-
call-workflow-passing-data:
9+
tag-and-release:
910
uses: nbr23/github-workflows/.github/workflows/tag-npm-version-bump.yml@e48cd8b188133e74b474566be4f58837d3e26b8f
1011
with:
11-
create_release: true
12+
create_release: true
13+
14+
build-and-attach:
15+
needs: tag-and-release
16+
if: needs.tag-and-release.outputs.release_created == 'true'
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Build extensions
24+
run: |
25+
make all
26+
27+
- name: Extract version from tag
28+
id: get_version
29+
run: |
30+
TAG="${{ needs.tag-and-release.outputs.release_tag }}"
31+
VERSION="${TAG#v}"
32+
echo "version=$VERSION" >> $GITHUB_OUTPUT
33+
echo "Extracted version: $VERSION from tag: $TAG"
34+
35+
- name: Upload Chrome artifact to release
36+
uses: actions/upload-release-asset@v1
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
with:
40+
upload_url: ${{ needs.tag-and-release.outputs.release_upload_url }}
41+
asset_path: ./web-ext-artifacts/bunny-pack-${{ steps.get_version.outputs.version }}.zip
42+
asset_name: bunny-pack-${{ steps.get_version.outputs.version }}-chrome.zip
43+
asset_content_type: application/zip

0 commit comments

Comments
 (0)