-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.01 KB
/
main.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
name: ChromePublish
run-name: ${{ github.ref_name }} deploy to Chrome 🚀
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish-chrome:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: vimtor/action-zip@v1
with:
files: images/ src/ manifest.json
recursive: false
dest: result.zip
- uses: actions/upload-artifact@v1
with:
name: zip-artifact
path: ${{ github.workspace }}/result.zip
- uses: mnao305/chrome-extension-upload@v4.0.1
with:
# Auth refresh token
refresh-token: ${{ secrets.REFRESH_TOKEN }}
# Extension application target id
extension-id: ${{ secrets.CHROME_EXTENSION_ID }}
# Token client id
client-id: ${{ secrets.CLIENT_ID }}
# Token client secret
client-secret: ${{ secrets.CLIENT_SECRET }}
# Path of zipped target upload file
file-path: ${{ github.workspace }}/result.zip