update chunk_while/4 #30
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: Deploy site to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v1 | |
| - name: Build Docker image | |
| run: docker build -t hugo-builder . | |
| - name: Convert .tex to .svg | |
| run: docker run -v ${{ github.workspace }}:/workspace hugo-builder make -C /workspace | |
| - name: Set permissions for GitHub Actions | |
| run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE | |
| - name: Setup Hugo | |
| uses: peaceiris/actions-hugo@v2 | |
| with: | |
| hugo-version: '0.125.7' | |
| extended: true | |
| - name: Build site | |
| run: hugo --minify | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./public | |