Update .github/workflows/update-repo.yml
This commit is contained in:
13
.github/workflows/update-repo.yml
vendored
13
.github/workflows/update-repo.yml
vendored
@@ -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 <<EOF > index.html
|
||||
cat <<'EOF' > index.html
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
@@ -91,7 +91,7 @@ jobs:
|
||||
<p>Add the following to the bottom of <code>/etc/pacman.conf</code>:</p>
|
||||
<pre>[hyprarch-repo]
|
||||
SigLevel = Required DatabaseOptional
|
||||
Server = https://repo.stuple.net/\$arch</pre>
|
||||
Server = https://repo.stuple.net/$arch</pre>
|
||||
|
||||
<h2>3. Sync & Install</h2>
|
||||
<div class="step">
|
||||
@@ -100,16 +100,17 @@ Server = https://repo.stuple.net/\$arch</pre>
|
||||
|
||||
<footer>
|
||||
<p><a href="./x86_64/">📁 Browse File Index</a></p>
|
||||
<p>Automated by GitHub Actions • Last updated: $(date)</p>
|
||||
<p>Automated by GitHub Actions</p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user