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
|
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 to download
|
# Export public key for users
|
||||||
gpg --export --armor 236328A7F2C2001E > pubkey.gpg
|
gpg --export --armor 236328A7F2C2001E > pubkey.gpg
|
||||||
|
|
||||||
# Sign all packages
|
# Sign all packages
|
||||||
@@ -33,7 +33,7 @@ jobs:
|
|||||||
--detach-sign "$pkg"
|
--detach-sign "$pkg"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Build the database using the fixed Python script
|
# Build the database via Python script on the Pi
|
||||||
python3 ~/build_db.py
|
python3 ~/build_db.py
|
||||||
|
|
||||||
# Sign the database file
|
# Sign the database file
|
||||||
@@ -60,7 +60,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate Root Landing Page
|
- name: Generate Root Landing Page
|
||||||
run: |
|
run: |
|
||||||
cat <<EOF > index.html
|
cat <<'EOF' > index.html
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
@@ -91,7 +91,7 @@ jobs:
|
|||||||
<p>Add the following to the bottom of <code>/etc/pacman.conf</code>:</p>
|
<p>Add the following to the bottom of <code>/etc/pacman.conf</code>:</p>
|
||||||
<pre>[hyprarch-repo]
|
<pre>[hyprarch-repo]
|
||||||
SigLevel = Required DatabaseOptional
|
SigLevel = Required DatabaseOptional
|
||||||
Server = https://repo.stuple.net/\$arch</pre>
|
Server = https://repo.stuple.net/$arch</pre>
|
||||||
|
|
||||||
<h2>3. Sync & Install</h2>
|
<h2>3. Sync & Install</h2>
|
||||||
<div class="step">
|
<div class="step">
|
||||||
@@ -100,16 +100,17 @@ Server = https://repo.stuple.net/\$arch</pre>
|
|||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<p><a href="./x86_64/">📁 Browse File Index</a></p>
|
<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>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
EOF
|
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
|
- name: Deploy and Fix Permissions
|
||||||
run: |
|
run: |
|
||||||
# Use -T on cp to avoid nesting if the directory already exists
|
|
||||||
sudo mkdir -p /var/www/hyprarch-repo/x86_64
|
sudo mkdir -p /var/www/hyprarch-repo/x86_64
|
||||||
sudo cp -rf . /var/www/hyprarch-repo/
|
sudo cp -rf . /var/www/hyprarch-repo/
|
||||||
sudo chown -R stui:www-data /var/www/hyprarch-repo
|
sudo chown -R stui:www-data /var/www/hyprarch-repo
|
||||||
|
|||||||
Reference in New Issue
Block a user