Test upload file to package registry
Build and upload artifact apk / Verify environment (push) Successful in 4s
Sync Source to Host / sync-source (push) Successful in 4s
Build and upload artifact apk / Build APK file (push) Successful in 3m28s

This commit is contained in:
2026-08-15 12:03:51 +07:00
parent d81f4ba5a3
commit f0b1ecbcd9
2 changed files with 12 additions and 21 deletions
+12 -2
View File
@@ -58,5 +58,15 @@ jobs:
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: android-apk name: TorqueVault-apk
path: androidApp/build/outputs/apk/debug/androidApp-debug.apk path: androidApp/build/outputs/apk/debug/androidApp-debug.apk
- name: Upload APK to Package Registry
run: |
VERSION="${GITHUB_REF_NAME}-${GITHUB_RUN_NUMBER}"
curl \
--fail \
--user "${{ github.actor }}:${{ secrets.PACKAGE_TOKEN }}" \
--upload-file androidApp/build/outputs/apk/debug/androidApp-debug.apk \
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/android-debug/${VERSION}/Torque-Vault.apk"
-19
View File
@@ -1,19 +0,0 @@
name: Build and upload artifact apk
run-name: ${{ gitea.actor }} is testing build android
on:
push:
jobs:
upload:
runs-on: android
steps:
- name: "Create file"
run: |
echo "hello" > test.txt
ls -la
- name: Upload Test Package
run: |
curl \
--fail \
--user "${{ github.actor }}:${{ secrets.PACKAGE_TOKEN }}" \
--upload-file test.txt \
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/test-package/${{ github.run_number }}/test.txt"