Skip to content

Fix deploy.yml

Fix deploy.yml #35

Workflow file for this run

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
- uses: actions/setup-python@v6
with:
python-version: '3.13'
cache: `pip`

Check failure on line 24 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 24
- run: pip install -r requirements.txt
- 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