github actions deployment #1
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: Render and Deploy Quarto Site | |
| on: | |
| push: | |
| branches: | |
| - main # Trigger deployment when changes are pushed to main | |
| jobs: | |
| build-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Quarto | |
| run: | | |
| wget https://quarto.org/download/latest/quarto-linux-amd64.deb | |
| sudo dpkg -i quarto-linux-amd64.deb | |
| - name: Render site | |
| run: quarto render | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./_site | |