fix(ci): change talks render path to github-pages #15
This file contains 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
# from Dustin's repo https://github.com/dabreegster/talks/tree/main/.github/workflows | ||
name: Deploy slides | ||
on: | ||
push: | ||
branches: [main] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install quarto | ||
run: | | ||
wget https://github.com/quarto-dev/quarto-cli/releases/download/v0.9.4/quarto-0.9.4-linux-amd64.deb | ||
sudo dpkg -i quarto-0.9.4-linux-amd64.deb | ||
# - name: Render | ||
# run: | | ||
# mkdir -p dist | ||
# for x in UA20_Liverpool team_call_Dec2023_fAIr; do | ||
# cd $x | ||
# quarto render slides.md | ||
# cd .. | ||
# cp -Rv $x dist/ | ||
# done | ||
. - name: Render Quarto Project | ||
uses: quarto-dev/quarto-actions/render@v2 | ||
with: | ||
to: html # If set, it will be equivalent to `quarto render --to html` | ||
path: . # By default, the current working dir is used i.e `quarto render . | ||
output-dir: github-deploy | ||
- name: Publish | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./github-deploy |