Update gradle wrapper #76
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 | |
on: | |
workflow_dispatch: | |
push: | |
paths-ignore: | |
- docs/** | |
- LICENSE | |
branches: main | |
pull_request: | |
branches: main | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Build with Gradle | |
run: | | |
./gradlew assembleRelease bundleRelease --stacktrace | |
{ | |
echo "version=v$(grep versionName version.properties | sed 's/^[^=]*=//')" | |
echo "commit=$(echo ${{ github.sha }} | cut -c-7)" | |
} >> $GITHUB_ENV | |
- name: Copy built artifacts | |
run: | | |
cp -v app/build/outputs/apk/release/app-release.apk Dhizuku-${{ env.version }}.apk | |
cp -v app/build/outputs/bundle/release/app-release.aab Dhizuku-${{ env.version }}.aab | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Dhizuku(${{ env.version }}@${{ env.commit }}) | |
path: Dhizuku-${{ env.version }}.a* |