-
-
Notifications
You must be signed in to change notification settings - Fork 17
55 lines (48 loc) · 1.46 KB
/
deploy_chromium.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
name: Publish Chrome and Edge # Name of your workflow
on:
workflow_dispatch: # Allows you to manually trigger workflow
push:
# Triggers workflow only if code is pushed to master/main branch
branches: [ master, main ]
jobs:
Publish:
name: Publish Package to Chrome
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 16
- name: Build
run: |
npm install
npm run build
npm run postversion
- name: Upload & release Chrome
uses: mnao305/[email protected]
with:
file-path: likers-blocker_chromium.zip
extension-id: melnbpmfhaejmcpfflfjmchondkpmkcj
client-id: ${{ secrets.GOOGLE_CLIENT_ID }}
client-secret: ${{ secrets.GOOGLE_CLIENT_SECRET }}
refresh-token: ${{ secrets.GOOGLE_REFRESH_TOKEN }}
PublishEdge:
name: Publish Package to Edge
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 16
- name: Build
run: |
npm install
npm run build
npm run postversion
- name: Upload & release Edge
run: |
touch .env
echo EDGEclientId=${{ secrets.EDGEclientId }} >> .env
echo EDGEclientSecret=${{ secrets.EDGEclientSecret }} >> .env
echo EDGEaccessTokenUrl==${{ secrets.EDGEaccessTokenUrl }} >> .env
npm run publish_edge