-
Notifications
You must be signed in to change notification settings - Fork 24
32 lines (30 loc) · 1.03 KB
/
deploy.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
name: Release on Tag
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
deploy:
name: "Deploy"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Build
run: ./pack-ext.py ./
- uses: wdzeng/firefox-addon@v1
with:
addon-guid: '[email protected]'
xpi-path: GlotDict_${{ steps.get_version.outputs.version }}.xpi
jwt-issuer: ${{ secrets.FIREFOX_API_KEY }}
jwt-secret: ${{ secrets.FIREFOX_API_SECRET }}
- uses: wdzeng/chrome-extension@v1
with:
refresh-token: ${{ secrets.CHROME_API_TOKEN }}
client-id: ${{ secrets.CHROME_API_ID }}
client-secret: ${{ secrets.CHROME_API_SECRET }}
zip-path: GlotDict_${{ steps.get_version.outputs.version }}.zip
extension-id: ${{ secrets.CHROME_UUID }}