-
Notifications
You must be signed in to change notification settings - Fork 680
57 lines (53 loc) · 1.51 KB
/
autobuild.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
name: 自动构建
on:
workflow_dispatch:
pull_request:
types:
- closed
jobs:
build-android:
if: "github.event.pull_request.merged == true && startsWith(github.event.pull_request.title, 'release: ')"
runs-on: ubuntu-latest
steps:
- env:
REQBODY: ${{github.event.pull_request.body}}
run: |
echo "${REQBODY}"
- name: Checkout
uses: actions/checkout@v3
- name: Setup Env
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Pkgs
run: npm ci
- name: Get Version
run: node -p -e '`VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
- name: Build
run: |
cd ./android
./gradlew assembleRelease
- name: Generate Changelog
run: echo github.event_name
manual:
runs-on: ubuntu-latest
if: "github.event_name == 'workflow_dispatch'"
steps:
- env:
REQBODY: ${{github.event.pull_request.body}}
run: |
echo "${REQBODY}"
- name: Checkout
uses: actions/checkout@v3
- name: Setup Env
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Pkgs
run: npm ci
- name: Get Version
run: node -p -e '`VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
- name: Build
run: |
cd ./android
./gradlew assembleRelease