stagit4github

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 307eaccf926a9e4538e38622e6ac06b3b52a9a44
parent 7a820b4f21c95a2818069330c4294be38fc7945b
Author: minerva-jupiter <ryouturn@gmail.com>
Date:   Wed,  9 Sep 2026 03:55:55 +0900

ci(ci): replace Docker-based stagit with native installation and build workflow

Diffstat:
M.github/workflows/stagit-build.yml | 30+++++++++++++++++++++---------
1 file changed, 21 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/stagit-build.yml b/.github/workflows/stagit-build.yml @@ -17,28 +17,40 @@ jobs: steps: - - name: Clone All Repositories + - name: Install dependencies & stagit + run: | + sudo apt-get update + sudo apt-get install -y libgit2-dev gcc make + git clone https://git.codemadness.org/stagit /tmp/stagit + cd /tmp/stagit + make -j$(nproc) + sudo make install + + + - name: Clone All Repositories & Build Static Files env: GH_TOKEN: ${{ secrets.PORTAL_PAT }} run: | git config --global url."https://x-access-token:${GH_TOKEN}@github.com/".insteadOf "https://github.com/" mkdir -p repositories html + ROOT_DIR="$(pwd)" - # url フィールドを使用する gh repo list --limit 1000 --json url -q '.[].url' | while read -r url; do [ -z "$url" ] && continue repo_name=$(basename "$url" .git) + git clone --bare "$url" "repositories/${repo_name}.git" + + mkdir -p "html/${repo_name}" + cd "repositories/${repo_name}.git" + stagit "${ROOT_DIR}/html/${repo_name}" + cd "${ROOT_DIR}" done - - name: Generate HTML with Stagit Container - run: | - docker run --rm \ - -v "$PWD/html:/html" \ - -v "$PWD/repositories:/repositories" \ - servercontainers/stagit - + cd repositories + stagit-index *.git > "${ROOT_DIR}/html/index.html" + - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@main with: