Skip to content

build and attach chrome release #24

build and attach chrome release

build and attach chrome release #24

Workflow file for this run

name: Tag npm bumps and build release artifacts
on:
push:
branches:
- master
jobs:
tag-and-release:
uses: nbr23/github-workflows/.github/workflows/tag-npm-version-bump.yml@e48cd8b188133e74b474566be4f58837d3e26b8f
with:
create_release: true
build-and-attach:
needs: tag-and-release
if: needs.tag-and-release.outputs.release_created == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build extensions
run: |
make all
- name: Extract version from tag
id: get_version
run: |
TAG="${{ needs.tag-and-release.outputs.release_tag }}"
VERSION="${TAG#v}"
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Extracted version: $VERSION from tag: $TAG"
- name: Upload Chrome artifact to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.tag-and-release.outputs.release_upload_url }}
asset_path: ./web-ext-artifacts/bunny-pack-${{ steps.get_version.outputs.version }}.zip
asset_name: bunny-pack-${{ steps.get_version.outputs.version }}-chrome.zip
asset_content_type: application/zip