Compare commits

..
5 Commits
Author SHA1 Message Date
tri d0331c19f9 ci: push the CI image in chunks under Cloudflare's upload limit
CI / build (pull_request) Successful in 26s
2026-11-14 08:26:25 +07:00
tri 116d028821 ci: reuse the PACKAGE_TOKEN secret for the CI image 2026-11-14 08:26:25 +07:00
tri 01471b40da ci: push the CI image with a package token 2026-11-14 08:26:25 +07:00
tri 18fafa01c5 ci: build in a prebuilt Arch image with ccache and no QML cachegen 2026-11-14 08:26:25 +07:00
tri 015626b65b 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>
2026-11-14 02:42:32 +07:00
+3 -2
View File
@@ -13,7 +13,6 @@ on:
permissions: permissions:
contents: read contents: read
packages: write
jobs: jobs:
package: package:
@@ -49,7 +48,9 @@ jobs:
su builder -c "cd $dir && makepkg --noconfirm" su builder -c "cd $dir && makepkg --noconfirm"
- name: Publish - name: Publish
env: 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: | run: |
for f in /tmp/pkg/qtpotato-[0-9]*.pkg.tar.zst; do for f in /tmp/pkg/qtpotato-[0-9]*.pkg.tar.zst; do
curl -fsS -X PUT -H "Authorization: token $TOKEN" --upload-file "$f" \ curl -fsS -X PUT -H "Authorization: token $TOKEN" --upload-file "$f" \