Skip to content

Update GitHub Actions #1

Update GitHub Actions

Update GitHub Actions #1

on:
push:
branches:
- main
name: Publish
permissions:
contents: write
pages: write
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: Install Python packages
run: |
python -m pip install --upgrade pip
pip install autocorrect_py panflute pypinyin
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: "pre-release"
# tinytex: true
- name: Render HTML
run: |
make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./outputs