Skip to content

Commit a8608d8

Browse files
author
Paul Rybitskyi
committed
Setup a release workflow
1 parent 6e47d56 commit a8608d8

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

Diff for: .github/workflows/release.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: [ubuntu-latest]
11+
12+
steps:
13+
- name: Checkout Repo
14+
uses: actions/checkout@v2
15+
16+
- name: Set up JDK 1.8
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 1.8
20+
21+
- name: Generate a Cache Key
22+
run: ./checksum.sh checksum.txt
23+
24+
- name: Copy CI Gradle Properties
25+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
26+
27+
- name: Cache Gradle Folders
28+
uses: actions/cache@v2
29+
with:
30+
path: |
31+
~/.gradle/caches/
32+
~/.gradle/wrapper/
33+
key: ${{ runner.os }}-gradle-${{ hashFiles('checksum.txt') }}
34+
35+
- name: Build Debug APK
36+
run: ./gradlew assembleDebug
37+
38+
- name: Create GitHub Release
39+
uses: softprops/action-gh-release@v1
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
tag_name: ${{ github.ref }}
44+
release_name: Release ${{ github.ref }}
45+
draft: true
46+
prerelease: false
47+
files: |
48+
app/build/outputs/apk/debug/app-arm64-v8a-debug.apk
49+
app/build/outputs/apk/debug/app-armeabi-v7a-debug.apk
50+
app/build/outputs/apk/debug/app-x86_64-debug.apk
51+
app/build/outputs/apk/debug/app-x86-debug.apk

0 commit comments

Comments
 (0)