feat: update to my forked snippets and add typst.snip #32
This file contains 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: GitHub Pages | |
on: | |
push: | |
branches: | |
- main # Set a branch name to trigger deployment | |
jobs: | |
publish: | |
name: Deploy Site | |
runs-on: ubuntu-22.04 | |
environment: github-pages | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Install | |
shell: bash | |
run: | | |
pip install -r requirements.txt | |
sphinx-build -b html docs build | |
- name: Make snippets to rst | |
shell: bash | |
working-directory: snippets | |
run: | | |
python3 snippets.py | |
- name: Deploy Website | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build | |