Merge branch 'issue6_create_exercises' #22
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 slides | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| push: | |
| branches: [ "main" ] | |
| # Allows manual run | |
| workflow_dispatch: | |
| jobs: | |
| # Builds slides with quarto and deploys them to a branch | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Quarto | |
| uses: quarto-dev/quarto-actions/setup@v2 | |
| - name: Render Quarto Project | |
| run: | | |
| cd src | |
| quarto render slides.qmd | |
| cd ../ | |
| - name: Test pages build | |
| if: github.ref != 'refs/heads/main' | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: test-pages | |
| folder: src | |
| dry-run: true | |
| - name: Deploy pages for main | |
| if: github.ref == 'refs/heads/main' | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: src |