Update 2025-08-16 index.md #59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish New Article | |
| on: | |
| workflow_dispatch: | |
| workflow_call: | |
| push: | |
| paths: | |
| - "src/content/blog/**" | |
| - "**.py" | |
| - "**.md" | |
| - "**.c" | |
| - "**.ltx" | |
| - "**.tex" | |
| jobs: | |
| publish_article: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Fetch Article | |
| run: git pull origin main | |
| - name: Setup TeX Environment | |
| run: | | |
| sudo apt-get update | |
| sudo apt install -y texlive-luatex texlive-latex-base texlive-lang-cjk | |
| - name: Verify C Support | |
| run: cc -v | |
| - name: Publish Individual Post | |
| run: python3 scripts/make.py post | |
| - name: Publish Batch Monthly | |
| run: | | |
| mkdir -p ./public/batch | |
| python3 scripts/make.py batch | |
| - name: Commit and Push Changes | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add . | |
| git commit -m "chore: automated publish" || echo "no changes to commit" | |
| git push origin HEAD:main |