-
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (53 loc) · 1.43 KB
/
ci.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: 'Release'
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3
- name: "web-ext build"
id: web-ext-build
uses: kewisch/action-web-ext@v1
with:
cmd: build
source: src
filename: "{name}-{version}.xpi"
- name: "Web Ext Sign"
id: web-ext-sign
uses: kewisch/action-web-ext@v1
with:
cmd: sign
source: ${{ steps.web-ext-build.outputs.target }}
channel: unlisted
apiKey: ${{ secrets.AMO_SIGN_KEY }}
apiSecret: ${{ secrets.AMO_SIGN_SECRET }}
timeout: 900000
- name: "Upload Artifact"
uses: actions/upload-artifact@v3
with:
name: web-ext-${{ github.ref_name }}.xpi
path: ${{ steps.web-ext-build.outputs.target }}
release:
needs: build
name: "Release"
runs-on: ubuntu-latest
steps:
- name: "Download Artifact"
- name: "Download Artifact"
uses: actions/download-artifact@v3
with:
name: web-ext-${{ github.ref_name }}.xpi
name: dist
- name: "Create Release"
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ./dist/*
tag_name: ${{ github.ref_name }}