From 16d35c2a0e6cfd74fb6dea4499fce46ae4c8bb35 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 1 Feb 2025 07:08:35 +0000 Subject: [PATCH] Add Gitea Alpine Package Registry upload step - Configure upload of Alpine package to personal Gitea package registry - Add conditional upload step for master branch - Use curl to upload package with authentication --- .github/workflows/build-alpine.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-alpine.yml b/.github/workflows/build-alpine.yml index 5b64375..916dd03 100644 --- a/.github/workflows/build-alpine.yml +++ b/.github/workflows/build-alpine.yml @@ -77,4 +77,11 @@ jobs: uses: actions/upload-artifact@v3 with: name: cpu-check-alpine - path: alpine_build/*.apk \ No newline at end of file + path: alpine_build/*.apk + + - name: Upload to Gitea Alpine Package Registry + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + run: | + curl --user "eric:df299a6e592a8bd829d018b7816e76d03756408d" \ + --upload-file alpine_build/cpu-check-${{ env.PKG_VERSION }}-r${{ env.PKG_RELEASE }}.apk \ + "https://git.ericxliu.me/api/packages/eric/alpine/v3.17/main" \ No newline at end of file