-
-
Notifications
You must be signed in to change notification settings - Fork 29
42 lines (36 loc) · 1.14 KB
/
release-on-chrome.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
name: "Publish on Chrome"
on: workflow_dispatch
jobs:
chrome-publish:
name: "Pre Release Extension"
runs-on: "ubuntu-latest"
environment:
name: main
url: "https://github.com/tattle-made/Uli/releases"
steps:
- name: "Checkout Development Branch"
uses: actions/checkout@v3
with:
ref: main
- name: Get commit SHA
shell: bash
run: |
echo "setting variables"
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: "Build and Test"
run: |
cd browser-extension/plugin
ls
pwd
npm install
npm run build
zip extension.zip ./dist/ -r
- name: "Upload to chrome"
uses: Klemensas/[email protected]
with:
refresh-token: ${{ secrets.CHROME_STORE_REFRESH_TOKEN }}
client-id: ${{ secrets.CHROME_STORE_CLIENT_ID }}
client-secret: ${{ secrets.CHROME_STORE_CLIENT_SECRET }}
file-name: "./browser-extension/plugin/extension.zip"
app-id: "hbfmbflgailjeobfkhpdipcdmpclinki"
publish: true