Skip to content

Commit 04c2151

Browse files
ctruedenclaude
andcommitted
Overhaul web page generation to use pombast
- Remove obsolete Python and shell scripts. - Remove settings.xml — at least for now, maven.scijava.org cannot proxy Central anymore due to Nexus v3's crippleware component count restriction, so using it as a full mirror no longer works. - Remove unused server-side component analysis scripts. They are not part of the pipeline, and won't be used in future either. - Improve .github/build.sh: - Clone gh-pages first, so pombast writes directly to site/index.html. - Fix the date format string bug (%M/%m were swapped in the original). - Update .github/workflows/build.yml: - Use astral-sh/setup-uv to install uv. - Use uv to install pombast from the current git HEAD (1220be5). - Bump actions/checkout to v4 and webfactory/ssh-agent to v0.9.0. - Update .gitignore: - Add /index.html (generated, lives on gh-pages). - Add /.cache/ (old script cache dir). Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent faf7a4c commit 04c2151

11 files changed

Lines changed: 22 additions & 1033 deletions

File tree

.github/build.sh

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
#!/bin/sh
22

3-
# Regenerate the HTML content.
4-
python html-report.py > index-new.html &&
5-
6-
# Push it to the gh-pages branch.
3+
# Clone the gh-pages branch.
74
git clone --depth=1 --branch=gh-pages git@github.com:scijava/status.scijava.org site &&
8-
mv -f index-new.html site/index.html &&
95
git config --global user.name github-actions &&
106
git config --global user.email github-actions@github.com &&
7+
8+
# Regenerate the HTML content.
9+
pombast status org.scijava:pom-scijava:LATEST \
10+
-r scijava=https://maven.scijava.org/content/groups/public \
11+
--rules https://raw.githubusercontent.com/scijava/pom-scijava/master/rules.xml \
12+
--nexus-base https://maven.scijava.org \
13+
--projects projects.txt \
14+
--badges ci-badges.txt \
15+
--timestamps timestamps.txt \
16+
--html site/index.html \
17+
--footer footer.html &&
18+
19+
# Push changes to gh-pages if anything changed.
1120
cd site &&
1221
if git diff --quiet index.html
1322
then
1423
echo "== No new changes =="
1524
else
1625
echo "== Pushing changes =="
17-
commitNote="$(TZ=UCT date +'%Y-%M-%d %H:%m:%S UCT')"
26+
commitNote="$(TZ=UCT date +'%Y-%m-%d %H:%M:%S UCT')"
1827
git commit -m "Update component table ($commitNote)" index.html &&
1928
git push
2029
fi

.github/workflows/build.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
17-
- uses: webfactory/ssh-agent@v0.5.3
16+
- uses: actions/checkout@v4
17+
- uses: webfactory/ssh-agent@v0.9.0
1818
with:
1919
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
20-
- name: Set up Python
21-
uses: actions/setup-python@v5
22-
with:
23-
python-version: 3.12
20+
- uses: astral-sh/setup-uv@v6
21+
- name: Install pombast
22+
run: uv tool install "git+https://github.com/scijava/pombast.git@1220be502ac6efc88a540f587b21f77df072afb0"
2423
- name: Execute the build
2524
run: .github/build.sh

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
/__pycache__/
2+
/.cache/
3+
/index.html

github.py

Lines changed: 0 additions & 125 deletions
This file was deleted.

0 commit comments

Comments
 (0)