From e6ab4df6f482bdc44bba7996dd29a65d4ad7ee79 Mon Sep 17 00:00:00 2001 From: Mitsuba100 Date: Tue, 14 Apr 2026 13:30:24 +0200 Subject: [PATCH] Delete .github/workflows/update-repo.yml --- .github/workflows/update-repo.yml | 83 ------------------------------- 1 file changed, 83 deletions(-) delete mode 100644 .github/workflows/update-repo.yml diff --git a/.github/workflows/update-repo.yml b/.github/workflows/update-repo.yml deleted file mode 100644 index 2098b1b..0000000 --- a/.github/workflows/update-repo.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Update Arch Repository - -on: - push: - paths: - - 'x86_64/*.pkg.tar.zst' - workflow_dispatch: - -jobs: - update-db: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Install dependencies - run: | - sudo apt-get update - sudo apt-get install -y gnupg libarchive-tools - - - name: Install repo tools - run: | - sudo apt-get update - sudo apt-get install -y pacman-package-manager - - - name: Import GPG Key - run: | - echo "${{ secrets.GPG_PRIVATE_KEY }}" > private.key - gpg --batch --import private.key - rm private.key - - - name: Sign Packages - run: | - cd x86_64 - - for pkg in *.pkg.tar.zst; do - echo "Signing $pkg" - - echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes \ - --pinentry-mode loopback \ - --local-user 236328A7F2C2001E \ - --passphrase-fd 0 \ - --detach-sign "$pkg" - done - - - name: Build Repo Database (correct Arch way) - run: | - cd x86_64 - - rm -f hyprarch-repo.db* hyprarch-repo.files* - - repo-add --sign hyprarch-repo.db.tar.gz *.pkg.tar.zst - - - name: Export Public Key - run: | - gpg --export --armor 236328A7F2C2001E > x86_64/pubkey.gpg - - - name: Generate Simple Index Page - run: | - cd x86_64 - - echo "

Repository Index

" >> index.html - - - name: Commit and Push - run: | - git config --global user.name "repo-bot" - git config --global user.email "repo-bot@users.noreply.github.com" - - git add . - - if ! git diff-index --quiet HEAD; then - git commit -m "Update repository database" - git push - else - echo "No changes" - fi \ No newline at end of file