From f788c3a132aeb782769ec96315d04eec16c9e5c0 Mon Sep 17 00:00:00 2001 From: samuel Date: Sun, 15 Feb 2026 00:08:14 +0100 Subject: [PATCH] ci: add user and token --- .gitea/workflows/ci.yaml | 3 +++ Makefile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 67ae93f..3002042 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -20,3 +20,6 @@ jobs: run: rpmbuild -ba "$(make name).spec" - name: Upload rpm package run: make upload + env: + PACKAGES_USERNAME: ${{ vars.PACKAGES_USERNAME }} + PACKAGES_TOKEN: ${{ secrets.PACKAGES_TOKEN }} diff --git a/Makefile b/Makefile index 4582926..564170b 100644 --- a/Makefile +++ b/Makefile @@ -48,4 +48,4 @@ tarball: $(RPM_TARBALL_PATH) .PHONY: upload upload: - curl --fail-with-body --upload-file "$(RPM_BUILD_PATH)" https://git.netoik.io/api/packages/samuel/rpm/upload + curl --fail-with-body --upload-file "$(RPM_BUILD_PATH)" --user "$(PACKAGES_USERNAME):$(PACKAGES_TOKEN)" https://git.netoik.io/api/packages/samuel/rpm/upload