Skip to content

Workflow file for this run

name: Build extension and upload on release
on:
release:
types: [published]
branches:
- master
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Use NodeJS v14
- uses: actions/setup-node@v1
with:
node-version: '14'
# Install all dependencies
- name: Install modules
run: yarn
# Build extension for Firefox
- name: Build extension for Firefox
run: |
yarn run web-ext:build
cd web-ext-artifacts
for f in holo*.zip; do mv "$f" "firefox-$f"; done
cd ..
# Build extension for Chrome
- name: Build extension for Chrome
run: |
yarn run web-ext:build:chrome
cd web-ext-artifacts
for f in holo*.zip; do mv "$f" "chrome-$f"; done
cd ..
# Upload artifacts to release
- name: Upload to release
uses: AButler/[email protected]
with:
files: 'web-ext-artifacts/*.zip'
repo-token: ${{ secrets.GITHUB_TOKEN }}