forked from upstream-mirrors/OpenTracks
ci: add auto-build and release workflow
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
name: Build and Release APK
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Build and Upload APK
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: 'ubuntu:android-24.04'
|
||||||
|
steps:
|
||||||
|
- name: Checkout sources
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Build APKs
|
||||||
|
shell: bash
|
||||||
|
run: ./gradlew assembleDebug
|
||||||
|
|
||||||
|
- name: Upload to Gitea Releases
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
tag_name: latest
|
||||||
|
name: Latest Build (main)
|
||||||
|
prerelease: true
|
||||||
|
files: build/outputs/apk/**/*.apk
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Reference in New Issue
Block a user