From 4daa997bd891aecbca33ba59db809860b595db5c Mon Sep 17 00:00:00 2001 From: Mitsuba100 Date: Tue, 14 Apr 2026 22:00:10 +0200 Subject: [PATCH] Update .github/workflows/update-repo.yml --- .github/workflows/update-repo.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/update-repo.yml b/.github/workflows/update-repo.yml index 711c47f..0a153f0 100644 --- a/.github/workflows/update-repo.yml +++ b/.github/workflows/update-repo.yml @@ -13,11 +13,11 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Import GPG Key run: | + # Kill any existing agent to prevent config caching + gpgconf --kill gpg-agent || true echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import --yes - name: Build and Sign Repository @@ -27,15 +27,19 @@ jobs: 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 - 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 python3 ~/build_db.py - # Force binary output for the DB signature - 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 + # FORCE BINARY for 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 @@ -85,7 +89,6 @@ jobs: - name: Deploy and Fix Permissions run: | - # Use sudo for the cleanup and move if permissions are sticky sudo rm -rf /var/www/hyprarch-repo/x86_64/* sudo mkdir -p /var/www/hyprarch-repo/x86_64 sudo cp -rf . /var/www/hyprarch-repo/