diff --git a/.github/workflows/update-repo.yml b/.github/workflows/update-repo.yml index 1b73919..49c4a37 100644 --- a/.github/workflows/update-repo.yml +++ b/.github/workflows/update-repo.yml @@ -8,7 +8,7 @@ on: jobs: build-and-deploy: - # Use 'host' so the runner can move files directly to your web directory + # Use 'host' so the runner can move files directly to /var/www/arch-repo runs-on: ubuntu-latest steps: @@ -37,7 +37,7 @@ jobs: # 2. Process Packages for pkg in *.pkg.tar.zst; do - # Sign package + # Sign package (creates .sig file) echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --local-user 236328A7F2C2001E --passphrase-fd 0 --detach-sign --no-armor "$pkg" # Extract Metadata @@ -54,7 +54,8 @@ jobs: echo "%CSIZE%"; echo "$(stat -c%s "$pkg")"; echo "" echo "%ISIZE%"; echo "$(bsdtar -xOf "$pkg" .PKGINFO | grep "^size =" | cut -d' ' -f3)"; echo "" echo "%PGPSIG%" - echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --local-user 236328A7F2C2001E --passphrase-fd 0 --detach-sign --stdout --no-armor "$pkg" | base64 | tr -d '\n' + # Fixed: Use --output - instead of --stdout + echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --local-user 236328A7F2C2001E --passphrase-fd 0 --detach-sign --no-armor --output - "$pkg" | base64 | tr -d '\n' echo "" } > "db_temp/$pkgname-$pkgver/desc" done @@ -73,11 +74,48 @@ jobs: - name: Generate Landing Page run: | - # Use the same HTML logic as before, just change the URL to your domain - sed -i "s|https://hyprarch-repo.stuple.net|https://your-domain.com|g" index.html - # (Keep your previous landing page generation logic here) + cat < index.html + + + + HyprArch Repo + + + +
+

🚀 HyprArch Custom Repository

+ +

1. Trust the GPG Key

+

Run this to add the maintainer key to your pacman keyring:

+
curl -s https://repo.stuple.net/x86_64/pubkey.gpg | sudo pacman-key -a - && sudo pacman-key --lsign-key 236328A7F2C2001E
+ +

2. Add to pacman.conf

+

Add these lines to the bottom of /etc/pacman.conf:

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

3. Update and Install

+

sudo pacman -Syy

+ +
+

📂 Browse File Index

+

Hosted on Raspberry Pi 4B • Automated via Gitea Actions

+
+ + + EOF - name: Deploy to Local Web Folder run: | - # Move everything to the live folder served by Cloudflare + # Copy current build to the Nginx root cp -r * /var/www/arch-repo/ \ No newline at end of file