From 934d6724f9afea93f20e8db59987137396028e8e Mon Sep 17 00:00:00 2001 From: lamtruong28 Date: Sat, 15 Aug 2026 11:46:48 +0700 Subject: [PATCH] Test upload file to package --- .gitea/workflows/upload-package.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitea/workflows/upload-package.yaml diff --git a/.gitea/workflows/upload-package.yaml b/.gitea/workflows/upload-package.yaml new file mode 100644 index 0000000..610218b --- /dev/null +++ b/.gitea/workflows/upload-package.yaml @@ -0,0 +1,18 @@ +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 + + - name: Upload Test Package + run: | + curl \ + --fail \ + --user "${{ github.actor }}:${{ secrets.GITEA_PACKAGE_TOKEN }}" \ + --upload-file test.txt \ + "${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/test-package/${{ github.run_number }}/test.txt" \ No newline at end of file