feat(screenshots): replace ai mockups with real application screenshots and update package publishing
Test NaxOS Module Configurations / test-modules (push) Successful in 1m33s
Build NaxOS Bootable ISO / build-iso (push) Successful in 16m46s
Package NaxOS Release / release (push) Failing after 7m38s

This commit is contained in:
Lukas Holzner
2026-09-04 09:04:53 +02:00
parent 3eb4c3a5e9
commit e54d46e9f5
14 changed files with 23 additions and 7 deletions
+19 -3
View File
@@ -32,7 +32,23 @@ jobs:
- name: Publish NaxOS Modules to Gitea Packages
run: |
tar -czf naxos-os-modules.tar.gz modules profiles iso flake.nix flake.lock
curl -s --fail-with-body -X PUT \
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
echo "Packaging naxos-os-modules.tar.gz to Gitea Packages registry..."
TOKEN="${{ secrets.PACKAGE_TOKEN }}"
if [ -z "$TOKEN" ]; then
TOKEN="${{ secrets.GITEA_TOKEN }}"
fi
RESPONSE=$(curl -s -w "\nHTTP_STATUS:%{http_code}" -X PUT \
-H "Authorization: token ${TOKEN}" \
--upload-file naxos-os-modules.tar.gz \
"${{ github.server_url }}/api/packages/naxos/generic/naxos-os-modules/1.0.0/naxos-os-modules.tar.gz" || echo "Package upload note: published or exists"
"${{ github.server_url }}/api/packages/naxos/generic/naxos-os-modules/1.0.0/naxos-os-modules.tar.gz")
STATUS=$(echo "$RESPONSE" | grep "HTTP_STATUS:" | cut -d: -f2)
BODY=$(echo "$RESPONSE" | grep -v "HTTP_STATUS:")
echo "Package upload HTTP status: $STATUS"
if [ "$STATUS" -eq 201 ] || [ "$STATUS" -eq 200 ] || [ "$STATUS" -eq 204 ]; then
echo "Successfully published naxos-os-modules.tar.gz to Gitea Packages!"
elif [ "$STATUS" -eq 409 ]; then
echo "Package version 1.0.0 already published in Gitea Packages: $BODY"
else
echo "Failed to publish package to Gitea Packages ($STATUS): $BODY"
exit 1
fi