0.4.12 #6
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
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: node scripts/publish-mozilla.js |