This repository has been archived on 2026-10-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ClawDash/.gitea/workflows/build.yml
T
2026-04-04 17:53:14 -06:00

50 lines
1.1 KiB
YAML

name: Build APK
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Install SDK components
run: |
sdkmanager --install "platforms;android-34" "build-tools;34.0.0" "cmdline-tools;latest"
- name: Build Debug APK
run: ./gradlew assembleDebug --no-daemon
- name: Create Tag
run: |
TAG="v0.1.0-ci.${{ github.run_number }}"
git tag $TAG
git push origin $TAG
echo "RELEASE_TAG=$TAG" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.RELEASE_TAG }}
files: app/build/outputs/apk/debug/*.apk
name: "Build ${{ github.run_number }}"
make_latest: true
env:
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}