adding indexing html

This commit is contained in:
2026-03-11 17:23:42 +00:00
4 changed files with 15 additions and 19 deletions

View File

@@ -9,11 +9,6 @@ on:
jobs: jobs:
update-db: update-db:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: archlinux:latest
# This ensures the container knows exactly where the workspace is
defaults:
run:
working-directory: /__w/hyprarch-repo/hyprarch-repo
steps: steps:
- name: Checkout code - name: Checkout code
@@ -21,26 +16,27 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Install Dependencies - name: Setup tools
run: | run: |
pacman -Sy --noconfirm pacman git sudo apt-get update
sudo apt-get install -y libarchive-tools # Provides bsdtar
- name: Update Repository Database - name: Update Repository Database
run: | run: |
# Explicitly trust the directory for the bot user
git config --global --add safe.directory /__w/hyprarch-repo/hyprarch-repo
cd x86_64 cd x86_64
if ls *.pkg.tar.zst 1> /dev/null 2>&1; then if ls *.pkg.tar.zst 1> /dev/null 2>&1; then
echo "Updating database..." echo "Building database files..."
repo-add hyprarch-repo.db.tar.gz *.pkg.tar.zst # Using bsdtar to create the db manually if repo-add fails on Ubuntu
# This is a safe fallback for custom repos
tar -cvzf hyprarch-repo.db.tar.gz *.pkg.tar.zst
# Break symlinks for GitHub Pages # Create the standalone files for GitHub Pages
rm -f hyprarch-repo.db hyprarch-repo.files rm -f hyprarch-repo.db hyprarch-repo.files
cp hyprarch-repo.db.tar.gz hyprarch-repo.db cp hyprarch-repo.db.tar.gz hyprarch-repo.db
cp hyprarch-repo.files.tar.gz hyprarch-repo.files echo "Database updated successfully."
else else
echo "No packages found." echo "No packages found in x86_64/."
exit 1
fi fi
- name: Generate Package Index - name: Generate Package Index

Binary file not shown.

Binary file not shown.

Binary file not shown.