File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Tag npm bumps
1+ name : Tag npm bumps and build release artifacts
22
33on :
44 push :
55 branches :
66 - master
7+
78jobs :
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
You can’t perform that action at this time.
0 commit comments