ci: upload the Arch package with a package token, since the registry rejects the job token (#21)
CI / build (push) Successful in 6m17s

Co-authored-by: Tri Vo Khac <git@trivk.dev>
This commit was merged in pull request #21.
This commit is contained in:
tri authored and tri committed 2026-11-14 02:42:32 +07:00
1 parent c449402b04
commit 015626b65b
1 file changed
+3 -2
+3 -2
View File
@@ -13,7 +13,6 @@ on:
permissions:
contents: read
packages: write
jobs:
package:
@@ -49,7 +48,9 @@ jobs:
su builder -c "cd $dir && makepkg --noconfirm"
- name: Publish
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
# The package registry rejects the job token, so this is a personal access token
# with the write:package scope.
TOKEN: ${{ secrets.PACKAGE_TOKEN }}
run: |
for f in /tmp/pkg/qtpotato-[0-9]*.pkg.tar.zst; do
curl -fsS -X PUT -H "Authorization: token $TOKEN" --upload-file "$f" \