mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-02 10:39:10 -05:00
20 lines
483 B
YAML
20 lines
483 B
YAML
name: Deploy page
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup Quarto
|
|
uses: quarto-dev/quarto-actions/setup@v2
|
|
- name: Build
|
|
run: quarto render
|
|
|
|
- name: Deploy to GitHub Pages
|
|
if: ${{ github.ref == 'refs/heads/main' }}
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./_book |