Merge pull request #531 from PSIAIMS/meeting_minutesDec25 #563
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 and Publish | |
| jobs: | |
| build-deploy: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| R_KEEP_PKG_SOURCE: yes | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Quarto CLI | |
| uses: quarto-dev/quarto-actions/setup@v2 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| cache: 'pip' # caching pip dependencies | |
| - run: pip install -r requirements.txt | |
| - name: Install libcurl | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libcurl4-openssl-dev | |
| - name: Put pandoc in PATH | |
| run: | | |
| mkdir -p ~/.local/bin | |
| ln -s $(dirname $(readlink -f $(which quarto)))"/pandoc" ~/.local/bin/pandoc | |
| shell: bash | |
| - name: Set up R | |
| uses: r-lib/actions/setup-r@v2 | |
| with: | |
| use-public-rspm: true | |
| r-version: 'renv' | |
| - name: Set up renv | |
| uses: r-lib/actions/setup-renv@v2 | |
| with: | |
| cache-version: 3 | |
| - name: Build site 🔧 | |
| run: | | |
| quarto render | |
| - name: Deploy 🚀 | |
| if: github.event_name != 'pull_request' | |
| uses: JamesIves/github-pages-deploy-action@4.1.7 | |
| with: | |
| branch: gh-pages # The branch the action should deploy to. | |
| folder: _site # The folder the action should deploy. | |
| # Don't remove preview deployments | |
| clean-exclude: pr-preview/ | |
| force: false |