diff --git a/.github/workflows/update-repo.yml b/.github/workflows/update-repo.yml index 9bef63e..06a6c1a 100644 --- a/.github/workflows/update-repo.yml +++ b/.github/workflows/update-repo.yml @@ -23,7 +23,7 @@ jobs: cd x86_64 rm -f hyprarch-repo.db* hyprarch-repo.files* *.sig - # Export public key for users to download + # Export public key for users gpg --export --armor 236328A7F2C2001E > pubkey.gpg # Sign all packages @@ -33,7 +33,7 @@ jobs: --detach-sign "$pkg" done - # Build the database using the fixed Python script + # Build the database via Python script on the Pi python3 ~/build_db.py # Sign the database file @@ -60,7 +60,7 @@ jobs: - name: Generate Root Landing Page run: | - cat < index.html + cat <<'EOF' > index.html @@ -91,7 +91,7 @@ jobs:

Add the following to the bottom of /etc/pacman.conf:

[hyprarch-repo]
 SigLevel = Required DatabaseOptional
-Server = https://repo.stuple.net/\$arch
+Server = https://repo.stuple.net/$arch

3. Sync & Install

@@ -100,16 +100,17 @@ Server = https://repo.stuple.net/\$arch
EOF + # Append the date separately to avoid shell escaping issues inside the heredoc + sed -i "s/Automated by GitHub Actions/& • Last updated: $(date)/" index.html - name: Deploy and Fix Permissions run: | - # Use -T on cp to avoid nesting if the directory already exists sudo mkdir -p /var/www/hyprarch-repo/x86_64 sudo cp -rf . /var/www/hyprarch-repo/ sudo chown -R stui:www-data /var/www/hyprarch-repo