-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (37 loc) · 987 Bytes
/
publish.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
name: Publish
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
name: Publish webextension
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Setup pnpm
with:
version: 8.15.0
run_install: false
- uses: actions/setup-node@v4
name: Setup Node.js
with:
node-version: 20.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Make zip file
run: zip -r ./build.zip ./dist
shell: bash
- name: Upload & release
uses: mnao305/chrome-extension-upload@v5.0.0
with:
file-path: ./build.zip
extension-id: 'ogldncimhepjdfadhjjhkchknloncnmg'
client-id: ${{ secrets.CLIENT_ID }}
client-secret: ${{ secrets.CLIENT_SECRET }}
refresh-token: ${{ secrets.REFRESH_TOKEN }}