-
Notifications
You must be signed in to change notification settings - Fork 28
44 lines (38 loc) · 1.28 KB
/
app_center.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
name: publish demo to AppCenter
on:
workflow_dispatch:
inputs:
diff_with_origin:
description: 'diff with origin'
required: true
default: 'origin/master'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 11
uses: actions/setup-java@v1
with:
java-version: '11'
- name: build release
run: ./gradlew :sample:assembleDebug
- name: get the realease Notes
run: |
NEW_CHANGES=$(./gradlew -q :realeaseNotes -PdiffWithOrigin='${{ github.event.inputs.diff_with_origin }}')
echo "NEW_CHANGES<<EOF" >> $GITHUB_ENV
echo "$NEW_CHANGES" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: upload artefact to App Center
uses: wzieba/AppCenter-Github-Action@v1
with:
appName: Tinkoff-Mobile-Core/Tinkoff-Acquiring
token: ${{secrets.APP_CENTER_TOKEN}}
group: Collaborators
file: sample/build/outputs/apk/debug/sample-debug.apk
notifyTesters: true
debug: false
releaseNotes: |+
Branch name : ${{ github.head_ref || github.ref_name }}
Last changes :
${{ env.NEW_CHANGES }}