Skip to content

Update release workflow to use Ubuntu 22.04 as the build environment #70

Update release workflow to use Ubuntu 22.04 as the build environment

Update release workflow to use Ubuntu 22.04 as the build environment #70

Workflow file for this run

name: "Submit to Web Store"
on:
push:
branches:
- main
jobs:
build-and-release:
name: Build and Release
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "yarn"
- name: Cache dependencies
id: cache
uses: actions/cache@v3
with:
path: |
node_modules
.yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build the extension
run: |
targets=("chrome-mv3" "firefox-mv3" "edge-mv3" "opera-mv3" "safari-mv3")
for target in "${targets[@]}"; do
yarn build --target=$target --zip &
done
wait
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/*.zip