fix:building
Android / build-android (push) Successful in 5m7s

This commit is contained in:
intelligence committed 2026-08-29 14:56:28 +02:00
1 parent e3dd14cef6
commit 15ab99c740
2 files changed
+7 -8

No files matched your search

+7 -7
View File
@@ -20,7 +20,8 @@ jobs:
distribution: temurin distribution: temurin
java-version: 21 java-version: 21
- uses: android-actions/setup-android@v3 - uses: android-actions/setup-android@v3
- uses: gradle/actions/setup-gradle@v4 # Gitea's act resolver cannot peel the annotated v4 tag alias.
- uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
with: with:
cache-read-only: ${{ gitea.event_name == 'pull_request' }} cache-read-only: ${{ gitea.event_name == 'pull_request' }}
- name: Install Android SDK packages - name: Install Android SDK packages
@@ -50,17 +51,16 @@ jobs:
- name: Prepare APK artifacts - name: Prepare APK artifacts
working-directory: android working-directory: android
run: | run: |
mkdir -p artifacts mkdir -p ../artifacts
cp app/build/outputs/apk/debug/app-debug.apk artifacts/transui-android-debug.apk cp app/build/outputs/apk/debug/app-debug.apk ../artifacts/transui-android-debug.apk
if [ -f app/build/outputs/apk/release/app-release.apk ]; then if [ -f app/build/outputs/apk/release/app-release.apk ]; then
cp app/build/outputs/apk/release/app-release.apk artifacts/transui-android-release.apk cp app/build/outputs/apk/release/app-release.apk ../artifacts/transui-android-release.apk
fi fi
cd artifacts cd ../artifacts
sha256sum ./*.apk > SHA256SUMS-android sha256sum ./*.apk > SHA256SUMS-android
- name: Attach APKs to the Gitea release - name: Attach APKs to the Gitea release
if: gitea.event_name == 'release' if: gitea.event_name == 'release'
env: env:
ARTIFACT_DIR: android/artifacts
GITEA_SERVER_URL: ${{ gitea.server_url }} GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_REPOSITORY: ${{ gitea.repository }} GITEA_REPOSITORY: ${{ gitea.repository }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
@@ -71,5 +71,5 @@ jobs:
uses: christopherhx/gitea-upload-artifact@v4 uses: christopherhx/gitea-upload-artifact@v4
with: with:
name: transui-android name: transui-android
path: android/artifacts/ path: artifacts/
if-no-files-found: error if-no-files-found: error
-1
View File
@@ -4,4 +4,3 @@
/android/build/ /android/build/
/android/local.properties /android/local.properties
/android/app/build/ /android/app/build/
/android/artifacts/