Merge pull request #92 from jansim/main #163
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
| on: | |
| push: | |
| branches: main | |
| name: render | |
| jobs: | |
| render: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| R_REMOTES_NO_ERRORS_FROM_WARNINGS: false | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: r-lib/actions/setup-r@v2 | |
| - uses: r-lib/actions/setup-pandoc@v2 | |
| - uses: quarto-dev/quarto-actions/setup@v2 | |
| - name: Install Linux system dependencies | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libglpk-dev libglpk40 libmbedtls-dev | |
| - uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| extra-packages: any::rcmdcheck | |
| needs: check | |
| - name: Cache results | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| _book | |
| _freeze | |
| key: render-${{ hashFiles('**/*qmd') }} | |
| restore-keys: render- | |
| - name: Render | |
| run: quarto render | |
| - name: Deploy to GitHub pages | |
| if: github.event_name != 'pull_request' | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| clean: false | |
| branch: gh-pages | |
| folder: _book |