-
Notifications
You must be signed in to change notification settings - Fork 723
53 lines (49 loc) · 1.37 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
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:
- run: |
echo ${{github.event.pull_request.body}}
- 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:
- run: |
echo ${{github.event.pull_request.body}}
- 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