bsc

Comprehensive codebase and cou...
Log | Files | Refs | Activity | README | LICENSE

commit fb443f003c12ab8245eab4a4eb42047c55c6fbdb
parent a66edd5e7e7e468f9f1d81b56d7dec77139844c0
Author: Amit Dutta <mail@amit.is-a.dev>
Date:   Mon, 24 Aug 2026 20:17:07 +0530

Merge pull request #84 from notamitgamer/notamitgamer-patch-1

Refactor GitHub Actions workflow for changelog and build
Diffstat:
M.github/workflows/main.yml | 37++++++++++++++++++++++---------------
1 file changed, 22 insertions(+), 15 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml @@ -69,6 +69,7 @@ jobs: fetch-depth: 20 token: ${{ steps.app-token.outputs.token }} + # 1. GENERATE ALL CONTENT FIRST (Markdown + Changelog) - name: Setup Python uses: actions/setup-python@v7 with: @@ -90,20 +91,7 @@ jobs: git log -10 --pretty=format:"COMMIT|%H" --name-status > git_log_namestatus.txt python changelog.py - - name: Commit generated changelog to repo - run: | - git config user.name "bot-for-notamitgamer[bot]" - git config user.email "bot-for-notamitgamer[bot]@users.noreply.github.com" - git add CHANGELOG.md - if ! git diff --cached --quiet; then - # Pushing with [skip ci] handles generic actions, but our job-level filter - # github.actor != 'bot-for-notamitgamer[bot]' is the true shield stopping the infinite loop. - git commit -m "chore: update changelog [skip ci]" - git push - else - echo "No changes" - fi - + # 2. SET UP NODE AND ACTIVE CACHE - name: Setup Node.js uses: actions/setup-node@v7 with: @@ -117,20 +105,39 @@ jobs: uses: actions/cache@v4 with: path: .vitepress/cache - key: ${{ runner.os }}-vitepress-${{ hashFiles('package-lock.json', 'docs/.vitepress/config.*') }} + key: ${{ runner.os }}-vitepress-${{ hashFiles('package-lock.json', '.vitepress/config.*') }} restore-keys: | ${{ runner.os }}-vitepress- + # 3. BUILD VITEPRESS (Includes the new changelog page) - name: Build VitePress run: npm run docs:build env: VITE_DEPLOY_ID: ${{ github.sha }} + # 4. UPLOAD THE PRODUCTION SITE ARTIFACT - name: Upload artifact uses: actions/upload-pages-artifact@v5 with: path: docs/.vitepress/dist + # 5. COMMIT & PUSH TO GIT AS THE ABSOLUTE LAST STEP + # Moving this here allows the caching lifecycle to complete cleanly before the next workflow is spawned. + - name: Commit generated changelog to repo + run: | + git config user.name "bot-for-notamitgamer[bot]" + git config user.email "bot-for-notamitgamer[bot]@://github.com" + + git add CHANGELOG.md + + if ! git diff --cached --quiet; then + git commit -m "chore: update changelog [skip ci]" + git push + else + echo "No changes" + fi + + # Job 3: Standard automated fallback backup release: runs-on: ubuntu-latest
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror