Skip to content

buildnorelease

buildnorelease #2

name: buildnorelease
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assembleRelease --stacktrace
- uses: actions/upload-artifact@v1
with:
name: CCTV_Viewer_v${{ github.run_number }}.apk
path: ./app/build/outputs/apk/release/app-release.apk