-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-mp-qq.yml
More file actions
49 lines (41 loc) · 1.23 KB
/
build-mp-qq.yml
File metadata and controls
49 lines (41 loc) · 1.23 KB
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
# 自动编译&发布qq小程序版本
# 参考1. https://segmentfault.com/a/1190000039125224
# 由 https://github.com/seho-code-life/project_workflows 提供支持
name: MP-QQ CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-qq-ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Node ENV
uses: actions/setup-node@master
with:
node-version: 12.13.0
- name: Install Dependencies
run: npm install
- name: PreBuild
run: npm run build:mp-qq
- name: Version
id: version
uses: ashley-taylor/read-json-property-action@v1.0
with:
path: ./package.json
property: version
# 这里的env配置需要阅读官方文档,要根据自己项目更改
- name: Build
uses: docker://qqminiapp/build:latest
env:
PLUGIN_VERSION: ${{steps.version.outputs.value}}
PLUGIN_DESC: CI自动构建上传
PLUGIN_APPTOKEN: ${{ secrets.QQ_UPLOAD_TOKEN }}
PLUGIN_BUILDUSER: ${{ github.actor }}
PLUGIN_EXPERIENCE: true
PLUGIN_SOURCECODEPATH: ./dist/build/mp-qq