update blog1 #39
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 site | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.12.3 | |
| - name: Install dependencies | |
| run: | | |
| pip install sphinx | |
| pip install sphinx-rtd-theme | |
| pip install pydata-sphinx-theme myst_parser | |
| - name: Build docs | |
| run: | | |
| cd docs | |
| make clean | |
| make html | |
| - name: Deploy to GitHub Pages | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| if: ${{ github.event_name == 'push' }} | |
| with: | |
| branch: gh-pages | |
| folder: docs/build/html | |
| target-folder: blog1 |