Update .github/workflows/update-repo.yml
This commit is contained in:
17
.github/workflows/update-repo.yml
vendored
17
.github/workflows/update-repo.yml
vendored
@@ -13,11 +13,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Import GPG Key
|
- name: Import GPG Key
|
||||||
run: |
|
run: |
|
||||||
|
# Kill any existing agent to prevent config caching
|
||||||
|
gpgconf --kill gpg-agent || true
|
||||||
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import --yes
|
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import --yes
|
||||||
|
|
||||||
- name: Build and Sign Repository
|
- name: Build and Sign Repository
|
||||||
@@ -27,15 +27,19 @@ jobs:
|
|||||||
|
|
||||||
gpg --export --armor 236328A7F2C2001E > pubkey.gpg
|
gpg --export --armor 236328A7F2C2001E > pubkey.gpg
|
||||||
|
|
||||||
# Force binary output using the -o flag
|
# FORCE BINARY: Using --output and removing armor explicitly
|
||||||
for pkg in *.pkg.tar.zst; do
|
for pkg in *.pkg.tar.zst; do
|
||||||
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --local-user 236328A7F2C2001E --passphrase-fd 0 --detach-sign -o "$pkg.sig" "$pkg"
|
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback \
|
||||||
|
--local-user 236328A7F2C2001E --passphrase-fd 0 \
|
||||||
|
--no-armor --detach-sign --output "$pkg.sig" "$pkg"
|
||||||
done
|
done
|
||||||
|
|
||||||
python3 ~/build_db.py
|
python3 ~/build_db.py
|
||||||
|
|
||||||
# Force binary output for the DB signature
|
# FORCE BINARY for DB
|
||||||
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --local-user 236328A7F2C2001E --passphrase-fd 0 --detach-sign -o hyprarch-repo.db.sig hyprarch-repo.db
|
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback \
|
||||||
|
--local-user 236328A7F2C2001E --passphrase-fd 0 \
|
||||||
|
--no-armor --detach-sign --output hyprarch-repo.db.sig hyprarch-repo.db
|
||||||
|
|
||||||
cp hyprarch-repo.db.sig hyprarch-repo.db.tar.gz.sig
|
cp hyprarch-repo.db.sig hyprarch-repo.db.tar.gz.sig
|
||||||
|
|
||||||
@@ -85,7 +89,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy and Fix Permissions
|
- name: Deploy and Fix Permissions
|
||||||
run: |
|
run: |
|
||||||
# Use sudo for the cleanup and move if permissions are sticky
|
|
||||||
sudo rm -rf /var/www/hyprarch-repo/x86_64/*
|
sudo rm -rf /var/www/hyprarch-repo/x86_64/*
|
||||||
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/
|
||||||
|
|||||||
Reference in New Issue
Block a user