parent
1a90eb5218
commit
dd21e42e45
1 changed files with 39 additions and 0 deletions
39
.forgejo/workflows/build.yml
Normal file
39
.forgejo/workflows/build.yml
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
name: Auto Builder
|
||||||
|
run-name: ${{ github.actor }} started auto-build.
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build & Publish
|
||||||
|
runs-on: docker
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4.1.5
|
||||||
|
- uses: https://github.com/actions/setup-java@v4.2.1
|
||||||
|
with:
|
||||||
|
java-version: '22'
|
||||||
|
distribution: 'temurin'
|
||||||
|
cache: gradle
|
||||||
|
- name: Allowing permissions
|
||||||
|
run: chmod +x gradlew
|
||||||
|
- name: Build
|
||||||
|
run: ./gradlew clean assembleDebug --stacktrace
|
||||||
|
- name: Stop daemon
|
||||||
|
run: ./gradlew --stop
|
||||||
|
- name: Moving built APK
|
||||||
|
run: mv ./app/build/outputs/apk/debug/app-debug.apk ./DiceApp-autobuild.apk
|
||||||
|
- name: Creating checksum
|
||||||
|
run: md5sum DiceApp-autobuild.apk > md5sum.md5
|
||||||
|
- name: Verifying checksum
|
||||||
|
run: md5sum -c md5sum.md5
|
||||||
|
- name: Upload APK
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: autobuild
|
||||||
|
path: |
|
||||||
|
DiceApp-autobuild.apk
|
||||||
|
md5sum.md5
|
||||||
|
compression-level: 9
|
Loading…
Add table
Reference in a new issue