-
-
Notifications
You must be signed in to change notification settings - Fork 184
52 lines (47 loc) · 1.2 KB
/
alipay.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
name: Upload To AlipayMiniProgram
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- shell: bash
env:
TOOLID: ${{ secrets.ALI_TOOL_ID }}
APPID: ${{ secrets.ALI_APPID }}
PRIVATE_KEY: ${{ secrets.ALI_PRIVATE_KEY }}
run: |
if [[ -z $PRIVATE_KEY ]]; then
echo "##########"
echo ""
echo "Please set 'ALI_PRIVATE_KEY' key in actions secrets"
echo ""
echo "##########"
exit 1
else
echo '{
"alipay": {
"appid": "'$APPID'",
"toolId":"'$TOOLID'",
"privateKey": "'$PRIVATE_KEY'",
"projectPath": "dist/build/mp-alipay",
"autoincrement":true
},
"version": "",
"desc": ""
}' > .minicirc
fi
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v4
name: Install pnpm
- name: upload
run: |
npm i uni-mini-ci -g
pnpm install
pnpm upload:mp-alipay