minor updates week 4 #206
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: Quarto Publish | |
| jobs: | |
| build-deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| pages: write | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Setup GitHub Pages | |
| uses: actions/configure-pages@v3 | |
| - name: Set up Quarto | |
| uses: quarto-dev/quarto-actions/setup@v2 | |
| - name: Set up LaTeX dependencies | |
| run: quarto install tinytex | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| fonts-noto \ | |
| fontconfig \ | |
| pandoc \ | |
| libproj-dev \ | |
| libgdal-dev \ | |
| libudunits2-dev \ | |
| libfreetype6-dev \ | |
| libpng-dev \ | |
| librsvg2-bin \ | |
| gdal-bin \ | |
| libcurl4-openssl-dev \ | |
| libfontconfig1-dev \ | |
| libx11-dev | |
| sudo fc-cache -fv | |
| - name: Install R | |
| uses: r-lib/actions/setup-r@v2 | |
| with: | |
| r-version: '4.5' | |
| - name: Install R Dependencies | |
| uses: r-lib/actions/setup-renv@v2 | |
| with: | |
| cache-version: 1 | |
| - name: Render | |
| uses: quarto-dev/quarto-actions/render@v2 | |
| with: | |
| to: all | |
| - name: Upload Artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./_book | |
| - name: Deploy to Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |