-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.03 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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