diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 898bfa6..9e0e5c0 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -51,14 +51,13 @@ jobs: env: GITEA_URL: ${{ gitea.server_url || github.server_url }} REPO_OWNER: ${{ gitea.repository_owner || github.repository_owner }} - ACTOR: ${{ gitea.actor || github.actor }} TOKEN: ${{ secrets.PACKAGE_TOKEN || secrets.RELEASE_TOKEN || secrets.PUBLISH_TOKEN || secrets.API_TOKEN || secrets.PAT_TOKEN || secrets.CUSTOM_TOKEN || secrets.GITEA_TOKEN || secrets.GITHUB_TOKEN || github.token }} run: | echo "Veröffentliche Debian-Paket (Distribution: stable, Component: main)..." for deb in target/debian/*.deb; do [ -f "$deb" ] || continue curl -f -s -S -X PUT \ - --user "${ACTOR}:${TOKEN}" \ + -H "Authorization: token ${TOKEN}" \ --upload-file "$deb" \ "${GITEA_URL}/api/packages/${REPO_OWNER}/debian/pool/stable/main/upload" done @@ -67,7 +66,7 @@ jobs: for rpm in target/generate-rpm/*.rpm; do [ -f "$rpm" ] || continue curl -f -s -S -X PUT \ - --user "${ACTOR}:${TOKEN}" \ + -H "Authorization: token ${TOKEN}" \ --upload-file "$rpm" \ "${GITEA_URL}/api/packages/${REPO_OWNER}/rpm/stable/upload" done @@ -76,7 +75,7 @@ jobs: for pkg in target/arch/*.pkg.tar.zst; do [ -f "$pkg" ] || continue curl -f -s -S -X PUT \ - --user "${ACTOR}:${TOKEN}" \ + -H "Authorization: token ${TOKEN}" \ --upload-file "$pkg" \ "${GITEA_URL}/api/packages/${REPO_OWNER}/arch/stable/upload" done diff --git a/.gitea/workflows/testing.yaml b/.gitea/workflows/testing.yaml index 46ba782..6a8cef6 100644 --- a/.gitea/workflows/testing.yaml +++ b/.gitea/workflows/testing.yaml @@ -51,14 +51,13 @@ jobs: env: GITEA_URL: ${{ gitea.server_url || github.server_url }} REPO_OWNER: ${{ gitea.repository_owner || github.repository_owner }} - ACTOR: ${{ gitea.actor || github.actor }} TOKEN: ${{ secrets.PACKAGE_TOKEN || secrets.RELEASE_TOKEN || secrets.PUBLISH_TOKEN || secrets.API_TOKEN || secrets.PAT_TOKEN || secrets.CUSTOM_TOKEN || secrets.GITEA_TOKEN || secrets.GITHUB_TOKEN || github.token }} run: | echo "Veröffentliche Debian-Paket (Distribution: testing, Component: main)..." for deb in target/debian/*.deb; do [ -f "$deb" ] || continue curl -f -s -S -X PUT \ - --user "${ACTOR}:${TOKEN}" \ + -H "Authorization: token ${TOKEN}" \ --upload-file "$deb" \ "${GITEA_URL}/api/packages/${REPO_OWNER}/debian/pool/testing/main/upload" done @@ -67,7 +66,7 @@ jobs: for rpm in target/generate-rpm/*.rpm; do [ -f "$rpm" ] || continue curl -f -s -S -X PUT \ - --user "${ACTOR}:${TOKEN}" \ + -H "Authorization: token ${TOKEN}" \ --upload-file "$rpm" \ "${GITEA_URL}/api/packages/${REPO_OWNER}/rpm/testing/upload" done @@ -76,7 +75,7 @@ jobs: for pkg in target/arch/*.pkg.tar.zst; do [ -f "$pkg" ] || continue curl -f -s -S -X PUT \ - --user "${ACTOR}:${TOKEN}" \ + -H "Authorization: token ${TOKEN}" \ --upload-file "$pkg" \ "${GITEA_URL}/api/packages/${REPO_OWNER}/arch/testing/upload" done