Update .github/workflows/update-repo.yml

This commit is contained in:
2026-04-14 22:38:06 +02:00
parent 6faa277b90
commit a1683eeba9

View File

@@ -23,25 +23,20 @@ jobs:
cd x86_64 cd x86_64
rm -f hyprarch-repo.db* hyprarch-repo.files* *.sig rm -f hyprarch-repo.db* hyprarch-repo.files* *.sig
# Export public key for users
gpg --export --armor 236328A7F2C2001E > pubkey.gpg gpg --export --armor 236328A7F2C2001E > pubkey.gpg
# Sign all packages
for pkg in *.pkg.tar.zst; do for pkg in *.pkg.tar.zst; do
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback \ echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback \
--local-user 236328A7F2C2001E --passphrase-fd 0 \ --local-user 236328A7F2C2001E --passphrase-fd 0 \
--detach-sign "$pkg" --detach-sign "$pkg"
done done
# Build the database via Python script on the Pi
python3 ~/build_db.py python3 ~/build_db.py
# Sign the database file
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback \ echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback \
--local-user 236328A7F2C2001E --passphrase-fd 0 \ --local-user 236328A7F2C2001E --passphrase-fd 0 \
--detach-sign hyprarch-repo.db --detach-sign hyprarch-repo.db
# Mirror sig for compatibility
cp hyprarch-repo.db.sig hyprarch-repo.db.tar.gz.sig cp hyprarch-repo.db.sig hyprarch-repo.db.tar.gz.sig
- name: Generate Subfolder Index - name: Generate Subfolder Index
@@ -68,45 +63,28 @@ jobs:
<style> <style>
body { font-family: sans-serif; margin: 40px; line-height: 1.6; background: #2e3440; color: #eceff4; } body { font-family: sans-serif; margin: 40px; line-height: 1.6; background: #2e3440; color: #eceff4; }
a { color: #88c0d0; text-decoration: none; } a { color: #88c0d0; text-decoration: none; }
a:hover { text-decoration: underline; } .container { max-width: 900px; margin: auto; background: #3b4252; padding: 30px; border-radius: 8px; }
.container { max-width: 900px; margin: auto; background: #3b4252; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
h1 { border-bottom: 2px solid #4c566a; padding-bottom: 10px; color: #81a1c1; }
h2 { color: #a3be8c; margin-top: 30px; }
pre { background: #2e3440; padding: 15px; border-radius: 5px; color: #ebcb8b; overflow-x: auto; border: 1px solid #4c566a; } pre { background: #2e3440; padding: 15px; border-radius: 5px; color: #ebcb8b; overflow-x: auto; border: 1px solid #4c566a; }
code { color: #d08770; font-family: monospace; } code { color: #d08770; font-family: monospace; }
.step { background: #434c5e; padding: 10px 15px; border-left: 4px solid #81a1c1; margin: 10px 0; }
footer { margin-top: 40px; border-top: 1px solid #4c566a; padding-top: 20px; font-size: 0.9em; opacity: 0.8; } footer { margin-top: 40px; border-top: 1px solid #4c566a; padding-top: 20px; font-size: 0.9em; opacity: 0.8; }
</style> </style>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<h1>🚀 HyprArch Custom Repository</h1> <h1>🚀 HyprArch Custom Repository</h1>
<p>Welcome to the official <strong>HyprArch</strong> repository maintained by <strong>Stuart Drew (Mitsuba100)</strong>.</p> <p>Welcome to the official <strong>HyprArch</strong> repository maintained by <strong>Stuart Drew</strong>.</p>
<h2>1. Add the GPG Key</h2> <h2>1. Add the GPG Key</h2>
<p>Import and locally sign the key to trust these packages:</p>
<pre>curl -s https://repo.stuple.net/x86_64/pubkey.gpg | sudo pacman-key -a - && sudo pacman-key --lsign-key 236328A7F2C2001E</pre> <pre>curl -s https://repo.stuple.net/x86_64/pubkey.gpg | sudo pacman-key -a - && sudo pacman-key --lsign-key 236328A7F2C2001E</pre>
<h2>2. Configure Pacman</h2> <h2>2. Configure Pacman</h2>
<p>Add the following to the bottom of <code>/etc/pacman.conf</code>:</p> <pre>[hyprarch-repo]\nSigLevel = Required DatabaseOptional\nServer = https://repo.stuple.net/$arch</pre>
<pre>[hyprarch-repo]
SigLevel = Required DatabaseOptional
Server = https://repo.stuple.net/$arch</pre>
<h2>3. Sync & Install</h2>
<div class="step">
<code>sudo pacman -Sy && sudo pacman -S HyprArch-waybar</code>
</div>
<footer> <footer>
<p><a href="./x86_64/">📁 Browse File Index</a></p> <p><a href="./x86_64/">📁 Browse File Index</a></p>
<p id="status-tag">Automated by GitHub Actions</p> <p id="status">Automated by GitHub Actions</p>
</footer> </footer>
</div> </div>
</body> </body>
</html> </html>
EOF EOF
# Now we safely inject the dynamic date into the static HTML file
sed -i "s|Automated by GitHub Actions|& • Last updated: $(date)|" index.html sed -i "s|Automated by GitHub Actions|& • Last updated: $(date)|" index.html
- name: Deploy and Fix Permissions - name: Deploy and Fix Permissions