Skip to content

v3.0.2

v3.0.2 #79

Workflow file for this run

name: Latest Release Build
on:
release:
types:
- published
jobs:
build:
env:
ADDON_ID: "{14a15c41-13f4-498e-986c-7f00435c4d00}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: c-hive/gha-yarn-cache@v1
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install modules
run: yarn
- name: Build Chrome
run: |
VERSION=$(echo -n "${{ github.ref }}" | sed 's/[refs\/tagv]//g' | sed 's/-.*//') yarn build:chrome
yarn package
- name: Upload Chrome package to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/HyperChat-Chrome.zip
asset_name: HyperChat-Chrome.zip
tag: ${{ github.ref }}
overwrite: true
- name: Build Firefox
run: |
VERSION=$(echo -n "${{ github.ref }}" | sed 's/[refs\/tagv]//g' | sed 's/-.*//') yarn build:firefox
yarn package
- name: Upload Firefox package to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/HyperChat-Firefox.zip
asset_name: HyperChat-Firefox.zip
tag: ${{ github.ref }}
overwrite: true