Skip to content

Commit

Permalink
Merge pull request #256 from wisemuji/feature/#255
Browse files Browse the repository at this point in the history
  • Loading branch information
wisemuji authored Sep 6, 2023
2 parents 955bbba + 169efa8 commit 7c6853c
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Publish Android APK

on:
push:
tags:
- v*

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 45

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Cache Gradle and wrapper
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 17

- name: Build Release APK
run: ./gradlew :app:assembleRelease

- name: Upload Release Build to Artifacts
uses: actions/upload-artifact@v3
with:
name: release-artifacts
path: app/build/outputs/apk/release/

- name: Create Github Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
app/build/outputs/apk/release/app-release.apk

0 comments on commit 7c6853c

Please sign in to comment.