mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 17:18:40 +08:00
chore: 🚀 增加支付宝平台的workflow
This commit is contained in:
parent
644ec9a0fb
commit
13a9afb6ba
51
.github/workflows/alipay.yml
vendored
Normal file
51
.github/workflows/alipay.yml
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
name: Upload MiniProgram
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
upload:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- 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: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "14.x"
|
||||
|
||||
|
||||
- name: upload
|
||||
run: |
|
||||
npm i uni-mini-ci -g
|
||||
yarn install
|
||||
yarn upload:mp-alipay
|
||||
2
.github/workflows/weixin.yml
vendored
2
.github/workflows/weixin.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
||||
if [[ -z $PRIVATE_KEY ]]; then
|
||||
echo "##########"
|
||||
echo ""
|
||||
echo "Please set 'PRIVATE_KEY' key in actions secrets"
|
||||
echo "Please set 'MP_PRIVATE_KEY' key in actions secrets"
|
||||
echo ""
|
||||
echo "##########"
|
||||
exit 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user