Update README.md #29
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 and Release APK | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Set up Android SDK | |
uses: android-actions/setup-android@v2 | |
- name: Build APK | |
run: | | |
chmod +x ./gradlew | |
./gradlew assembleRelease | |
- name: Upload APK to GitHub Releases | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: app/build/outputs/apk/release/*.apk | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |