Skip to content

Commit

Permalink
feat(ci): Build APK for push and release
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiim committed Aug 18, 2022
1 parent c3b9976 commit cdeb745
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 17 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build APK

on:
push


jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11
- name: Build the app
run: ./gradlew assembleDebug assemble
- name: Upload apk as asset
uses: actions/upload-artifact@v2
with:
name: APKs
path: ./app/build/outputs/apk/**/*.apk
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
push:
tags:
- "v*"


jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11
- name: Build the app
run: ./gradlew assemble
- name: Upload APK to release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
files: |
app/build/outputs/apk/release/*.apk
17 changes: 0 additions & 17 deletions .idea/deploymentTargetDropDown.xml

This file was deleted.

Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit cdeb745

Please sign in to comment.