Publish Release #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
tags: | |
- 'v*' | |
name: Publish Release | |
jobs: | |
build: | |
name: Publish Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Prepare environment variables | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const ref = '${{ github.ref }}' | |
const isPrerelease = /beta|rc/.test(ref) | |
core.exportVariable('IS_PRERELEASE', isPrerelease) | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '22' | |
- name: Install dependencies | |
run: | | |
if ! yarn install; then | |
cat /tmp/xfs-*/buildfile.log 2>/dev/null || true | |
exit 1 | |
fi | |
- name: Pack extension | |
run: | | |
yarn dist:chrome | |
yarn dist:firefox | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
prerelease: ${{ env.IS_PRERELEASE }} | |
files: | | |
HackBar-chrome.zip | |
HackBar-firefox.zip |