-
Notifications
You must be signed in to change notification settings - Fork 22
37 lines (37 loc) · 1016 Bytes
/
create_release.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
name: Create Release
on:
push:
branches:
- master
paths:
- version.txt
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Build APK
run: ./gradlew assembleRelease
env:
TMDB_API_KEY: ${{ secrets.TMDB_API_KEY }}
- name: Extract version name
run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
- name: Create release
id: release
uses: release-drafter/release-drafter@v5
with:
tag: ${{ env.VERSION }}
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload release assets
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.VERSION }}
files: app/build/outputs/apk/release/app-release.apk