-
-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (47 loc) · 1.65 KB
/
extension-release-test.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
45
46
47
48
49
50
51
52
53
54
55
56
name: Firefox & Chrome Web Extension Release Test
on:
push:
branches:
- develop
jobs:
publish-chrome:
name: "Test Release Chrome Web Ext"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: "Get Version"
run: echo "VERSION=$(jq -r '.version' manifest.json)" >> $GITHUB_ENV
- name: "Echo Version"
run: echo $VERSION
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
filename: typo-chromium-release-${{ env.VERSION }}.zip
exclusions: "*.git* *.xpi skribbltypo.user.js userscript-gen.js readme.md patch.json /*extensions/* *.web-extension-id .editorconfig .github/"
- name: Append to artifacts
uses: actions/upload-artifact@v3
with:
name: typo-chromium-release-${{ env.VERSION }}
path: typo-chromium-release-${{ env.VERSION }}.zip
publish-firefox:
name: "Test Release Firefox Web Ext"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: "Get Version"
run: echo "VERSION=$(jq -r '.version' manifest.json)" >> $GITHUB_ENV
- name: "Echo Version"
run: echo $VERSION
- name: "web-ext build"
id: web-ext-build
uses: kewisch/action-web-ext@v1
with:
cmd: build
source: ./
exclusions: '["skribbltypo.user.js", "userscript-gen.js"," patch.json", "/*extensions/*"]'
timeout: 900000
- name: Archive signed XPI
uses: actions/upload-artifact@v3
with:
name: typo-firefox-signed-release-${{env.VERSION}}
path: ${{ steps.web-ext-build.outputs.target }}