Skip to content

fix: ai nonsense

fix: ai nonsense #62

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