Test upload file to package registry
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
|
||||||
Reference in New Issue
Block a user