File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ workflow_dispatch :
3
+ inputs :
4
+ to_publish :
5
+ description : ' What to publish'
6
+ required : true
7
+ default : ' all'
8
+ type : choice
9
+ options :
10
+ - all
11
+ - chrome
12
+ - edge
13
+ jobs :
14
+ deploy :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : actions/checkout@v5
18
+ with :
19
+ submodules : recursive
20
+ fetch-depth : 0
21
+ - uses : pnpm/action-setup@v4
22
+ with :
23
+ version : 10
24
+ - uses : actions/setup-node@v5
25
+ with :
26
+ node-version-file : ' .nvmrc'
27
+ cache : ' pnpm'
28
+ - run : pnpm install --frozen-lockfile
29
+ - run : pnpm wxt zip
30
+ - name : wxt submit chrome
31
+ if : " ${{ github.event.inputs.to_publish == 'all' || github.event.inputs.to_publish == 'chrome' }}"
32
+ run : pnpm wxt submit --chrome-zip .output/*-chrome.zip \
33
+ env :
34
+ CHROME_EXTENSION_ID : ${{ secrets.CHROME_EXTENSION_ID }}
35
+ CHROME_CLIENT_ID : ${{ secrets.CHROME_CLIENT_ID }}
36
+ CHROME_CLIENT_SECRET : ${{ secrets.CHROME_CLIENT_SECRET }}
37
+ CHROME_REFRESH_TOKEN : ${{ secrets.CHROME_REFRESH_TOKEN }}
38
+ - name : wxt submit edge
39
+ if : " ${{ github.event.inputs.to_publish == 'all' || github.event.inputs.to_publish == 'edge' }}"
40
+ run : pnpm wxt submit --edge-zip .output/*-chrome.zip \
41
+ env :
42
+ EDGE_PRODUCT_ID : ${{ secrets.EDGE_PRODUCT_ID }}
43
+ EDGE_CLIENT_ID : ${{ secrets.EDGE_CLIENT_ID }}
44
+ EDGE_CLIENT_SECRET : ${{ secrets.EDGE_CLIENT_SECRET }}
45
+ EDGE_ACCESS_TOKEN_URL : ${{ secrets.EDGE_ACCESS_TOKEN_URL }}
You can’t perform that action at this time.
0 commit comments