Update .github/workflows/update-repo.yml
This commit is contained in:
12
.github/workflows/update-repo.yml
vendored
12
.github/workflows/update-repo.yml
vendored
@@ -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
|
|
||||||
gpg --export --armor 236328A7F2C2001E > pubkey.gpg
|
gpg --export --armor 236328A7F2C2001E > pubkey.gpg
|
||||||
|
|
||||||
# Sign 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 DB via Python
|
|
||||||
python3 ~/build_db.py
|
python3 ~/build_db.py
|
||||||
|
|
||||||
# Sign the DB 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
|
||||||
@@ -72,7 +67,6 @@ jobs:
|
|||||||
h1 { border-bottom: 2px solid #4c566a; padding-bottom: 10px; color: #81a1c1; }
|
h1 { border-bottom: 2px solid #4c566a; padding-bottom: 10px; color: #81a1c1; }
|
||||||
h2 { color: #a3be8c; margin-top: 30px; }
|
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; }
|
|
||||||
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>
|
||||||
@@ -85,10 +79,9 @@ jobs:
|
|||||||
<pre>curl -s https://hyprarch-repo.stuple.net/x86_64/pubkey.gpg | sudo pacman-key -a - && sudo pacman-key --lsign-key 236328A7F2C2001E</pre>
|
<pre>curl -s https://hyprarch-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]
|
<pre>[hyprarch-repo]
|
||||||
SigLevel = Required DatabaseOptional
|
SigLevel = Required DatabaseOptional
|
||||||
Server = https://hyprarch-repo.stuple.net/$arch</pre>
|
Server = https://hyprarch-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>
|
||||||
@@ -103,7 +96,6 @@ Server = https://hyprarch-repo.stuple.net/$arch</pre>
|
|||||||
- name: Deploy and Fix Permissions
|
- name: Deploy and Fix Permissions
|
||||||
run: |
|
run: |
|
||||||
sudo mkdir -p /var/www/hyprarch-repo/x86_64
|
sudo mkdir -p /var/www/hyprarch-repo/x86_64
|
||||||
# Sync files into the web root
|
|
||||||
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
|
||||||
sudo chmod -R 755 /var/www/hyprarch-repo
|
sudo chmod -R 755 /var/www/hyprarch-repo
|
||||||
Reference in New Issue
Block a user