-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (49 loc) · 1.52 KB
/
ci-cd-manual.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
56
57
58
59
60
61
name: Manual Release
on:
workflow_dispatch:
inputs:
name:
description: "Casper Wallet version in x.x.x format"
default: "1.2.4"
action:
description: "Release action"
type: "choice"
default: "upload"
options:
- "testers"
- "upload"
- "publish"
jobs:
check_version:
runs-on: ubuntu-latest
steps:
- name: Check version of Casper Wallet
run: echo "Version of Casper Wallet is ${{ github.event.inputs.name }}"
build_upload:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Build
run: npm run build:chrome
- name: Package
run: npm run package:chrome
- name: Check zip file
run: ls -la ./web-ext-artifacts/casper_wallet-${{ github.event.inputs.name }}.zip
- name: Upload to Chrome Web Store
uses: mobilefirstllc/cws-publish@latest
with:
action: '${{ github.event.inputs.action }}' # one of: upload, publish, testers
client_id: ${{ secrets.CLIENT_ID }}
client_secret: ${{ secrets.CLIENT_SECRET }}
refresh_token: ${{ secrets.REFRESH_TOKEN }}
extension_id: ${{ secrets.EXTENSION_ID }}
zip_file: './web-ext-artifacts/casper_wallet-${{ github.event.inputs.name }}.zip'