chore: rename the project to ghglance

The Marketplace rejects ghstats as an action name, so the repo, Go module,
binary, and action share the name ghglance instead. The demo workflow keeps
reading the existing GHSTATS_TOKEN repo secret.
This commit is contained in:
tiennm99 committed 2026-10-03 13:38:15 +07:00
1 parent 8c1f139990
commit 3fc8a59de6
102 files changed
+238 -173

No files matched your search

+6 -6
View File
@@ -27,8 +27,8 @@ jobs:
go-version: "1.26"
cache: true
- name: Build ghstats
run: go build -trimpath -ldflags="-s -w" -o ghstats .
- name: Build ghglance
run: go build -trimpath -ldflags="-s -w" -o ghglance .
- name: Render every card for every theme
env:
@@ -36,7 +36,7 @@ jobs:
run: |
rm -rf demo
mkdir -p demo
./ghstats \
./ghglance \
-user "${{ github.repository_owner }}" \
-themes all \
-tz Asia/Saigon \
@@ -49,11 +49,11 @@ jobs:
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.repository }}
run: |
themes=$(./ghstats -list-themes)
themes=$(./ghglance -list-themes)
# Lightweight index so readers don't have to load ~975 images at once.
{
echo "# ghstats demo gallery"
echo "# ghglance demo gallery"
echo
echo "Every card rendered for [\`$OWNER\`](https://github.com/$OWNER) in every supported theme. Click a theme to open its gallery page — each page embeds 16 SVGs, so only the theme you're reviewing is fetched."
echo
@@ -87,7 +87,7 @@ jobs:
printf '</tr>\n'
}
{
printf '# ghstats — %s\n\n' "$theme"
printf '# ghglance — %s\n\n' "$theme"
printf '[← back to index](../README.md)\n\n'
printf 'Rendered for [`%s`](https://github.com/%s). 16 SVGs laid out to ' "$OWNER" "$OWNER"
printf 'match the author profile README table.\n\n'
+6 -6
View File
@@ -79,22 +79,22 @@ jobs:
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: "0"
run: |
bin=ghstats
[ "$GOOS" = windows ] && bin=ghstats.exe
bin=ghglance
[ "$GOOS" = windows ] && bin=ghglance.exe
mkdir -p dist
go build -trimpath -ldflags="-s -w" -o "dist/$bin" .
cd dist
if [ "$GOOS" = windows ]; then
zip "ghstats_${GOOS}_${GOARCH}.zip" "$bin"
zip "ghglance_${GOOS}_${GOARCH}.zip" "$bin"
else
tar -czf "ghstats_${GOOS}_${GOARCH}.tar.gz" "$bin"
tar -czf "ghglance_${GOOS}_${GOARCH}.tar.gz" "$bin"
fi
- uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2
with:
files: dist/ghstats_*.*
files: dist/ghglance_*.*
# Move the floating major-version tag (e.g. v1) to this release's commit so
# consumers using `uses: tiennm99/ghstats@v1` automatically pick up each new
# consumers using `uses: tiennm99/ghglance@v1` automatically pick up each new
# minor/patch release. Force-push is expected here — that's the point of a
# floating tag.
update-major-tag: