Add subsections and embedded writings #68
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: Build with Zola and Deploy to GitHub Pages | |
| on: [push, pull_request] | |
| jobs: | |
| build_drafts: | |
| runs-on: ubuntu-latest | |
| if: github.ref != 'refs/heads/main' | |
| steps: | |
| - name: Checkout main | |
| uses: actions/checkout@v4 | |
| - name: Build static site with Zola | |
| uses: shalzz/zola-deploy-action@v0.20.0 | |
| env: | |
| BUILD_ONLY: true | |
| BUILD_FLAGS: --drafts | |
| build_and_deploy: | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/main' | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: Build static site with Zola in public and push to gh-pages branch | |
| uses: shalzz/zola-deploy-action@master | |
| env: | |
| PAGES_BRANCH: gh-pages | |
| TOKEN: ${{ secrets.GITHUB_TOKEN }} |