10.0.0 #23
Workflow file for this run
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: Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
release: | |
name: Github Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 21 | |
- name: Build APK | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: app:assembleRelease | |
- name: Create Release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "app/build/outputs/apk/release/app-release.apk" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
publish: | |
name: Publish To Github Packages | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 21 | |
- uses: gradle/gradle-build-action@v2 | |
- name: Publish Package | |
run: ./gradlew publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |