Skip to content

0.4.14

0.4.14 #8

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*' # Trigger on version tags
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write # Required for creating releases
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Install web-ext
run: npm install -g web-ext
- name: Build extension
run: npm run build
- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v2
with:
files: web-ext-artifacts/*.zip
draft: false
prerelease: false
generate_release_notes: true
- name: Publish to Mozilla
env:
MOZILLA_JWT_ISSUER: ${{ secrets.MOZILLA_JWT_ISSUER }}
MOZILLA_JWT_SECRET: ${{ secrets.MOZILLA_JWT_SECRET }}
run: npm run publish:mozilla
- name: Publish to Chrome
env:
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
GOOGLE_REFRESH_TOKEN: ${{ secrets.GOOGLE_REFRESH_TOKEN }}
GOOGLE_CHROME_EXTENSION_ID: ${{ vars.GOOGLE_CHROME_EXTENSION_ID }}
run: npm run publish:chrome