Skip to content

Commit

Permalink
Merge branch 'mnalis-v38' into mnalis-everything
Browse files Browse the repository at this point in the history
  • Loading branch information
mnalis committed Nov 29, 2021
2 parents 7ae5700 + 10230b4 commit 141a50a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-release-apk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build release apk

on:
[workflow_dispatch]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Prepare for build
run: ./gradlew GenerateMetadataByCountry
- name: Build with Gradle
run: ./gradlew assembleRelease
- name: Rename APK
run: mv app/build/outputs/apk/release/app-release.apk app/build/outputs/apk/release/StreetComplete-release-$(git log -n 1 --format='%h').apk
- name: Archive APK
uses: actions/upload-artifact@v2
with:
name: release-apk
path: app/build/outputs/apk/release/*.apk
retention-days: 1

0 comments on commit 141a50a

Please sign in to comment.