Merge pull request #48 from Octav14n/renovate/androidx.appcompat-appc… #77
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: Build & Publish Debug APK | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
apk: | |
name: Generate APK | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Add local.properties | |
run: touch local.properties | |
- name: Build APK | |
run: bash ./gradlew assembleDebug --stacktrace | |
- name: Upload APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: apk | |
path: app/build/outputs/apk/debug/app-debug.apk | |
release: | |
name: Release APK | |
needs: apk | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download APK from build | |
uses: actions/download-artifact@v4 | |
with: | |
name: apk | |
- name: Generate release tag | |
id: tag | |
run: | | |
echo "::set-output name=release_tag::CIBuild_$(date +"%Y.%m.%d_%H-%M")" | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
with: | |
release_name: PreRelease | |
tag_name: ${{ steps.tag.outputs.release_tag }} | |
prerelease: true | |
- name: Upload Release APK | |
id: upload_release_asset | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
with: | |
tag_name: ${{ steps.tag.outputs.release_tag }} | |
files: apk/app-debug.apk | |
prerelease: true | |
generate_release_notes: true |