Skip to content

Release

Release #4

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
# Skip build if head commit contains 'skip ci'
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
timeout-minutes: 15
env:
TERM: dumb
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Current Ref
run: echo ${{ github.event.head_commit.ref }}
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build Release
run: ./gradlew app:assembleRelease --scan
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: app/build/outputs/apk/release/app-release.apk
artifactContentType: application/vnd.android.package-archive
token: ${{ secrets.GH_RELEASE_TOKEN }}
generateReleaseNotes: true
draft: true