Create Pre-Release On Merge (app) #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Pre-Release On Merge (app) | |
on: | |
push: | |
branches: | |
- dev | |
paths: | |
- app | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'liberica' | |
java-version: '21' | |
cache: 'gradle' | |
- run: chmod +x ./gradlew | |
- name: Build | |
run: ./gradlew build | |
- name: Create Debug APK | |
run: ./gradlew assembleDebug | |
- run: mv app/build/outputs/apk/debug/*.apk Blocktopograph.apk | |
- uses: ncipollo/release-action@v1 | |
with: | |
prerelease: true | |
name: Nightly Build | |
bodyFile: release_notes.md | |
artifacts: Blocktopograph.apk | |
tag: nightly | |
allowUpdates: true | |
artifactErrorsFailBuild: true |