Merge pull request #5 from NBISweden/louellaDNAM #13
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 and deploy website | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libcurl4-openssl-dev \ | |
| libbz2-dev \ | |
| liblzma-dev \ | |
| bzip2-doc \ | |
| libgsl-dev | |
| - name: Setup R | |
| uses: r-lib/actions/setup-r@v2 | |
| with: | |
| r-version: '4.6.0' | |
| - name: Setup renv | |
| uses: r-lib/actions/setup-renv@v2 | |
| - name: Install quarto | |
| uses: quarto-dev/quarto-actions/setup@v2 | |
| - name: Render website | |
| run: quarto render | |
| - name: Deploy to gh-pages | |
| uses: quarto-dev/quarto-actions/publish@v2 | |
| with: | |
| target: gh-pages | |