2021-08-16 10:27:45 +00:00
|
|
|
name: Pre-release
|
2021-08-16 09:51:31 +00:00
|
|
|
|
2021-08-17 07:42:28 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
2021-08-16 09:51:31 +00:00
|
|
|
|
2021-08-16 10:37:32 +00:00
|
|
|
concurrency:
|
|
|
|
group: "pre-release"
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-08-16 09:51:31 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-08-17 07:42:28 +00:00
|
|
|
- name: Set up JDK 8
|
|
|
|
uses: actions/setup-java@v2
|
2021-08-16 09:51:31 +00:00
|
|
|
with:
|
2021-08-17 07:42:28 +00:00
|
|
|
java-version: '8'
|
|
|
|
distribution: 'adopt'
|
|
|
|
- name: Grant execute permission for gradlew
|
|
|
|
run: chmod +x gradlew
|
|
|
|
- name: Run Gradle
|
|
|
|
run: ./gradlew assembleDebug
|
2021-08-16 10:27:45 +00:00
|
|
|
- name: Create pre-release
|
|
|
|
uses: "marvinpinto/action-automatic-releases@latest"
|
2021-08-16 09:51:31 +00:00
|
|
|
with:
|
2021-08-16 10:27:45 +00:00
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
automatic_release_tag: "pre-release"
|
|
|
|
prerelease: true
|
|
|
|
title: "Pre-release Build"
|
|
|
|
files: |
|
|
|
|
app/build/outputs/apk/debug/*.apk
|