diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..74d89d0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,40 @@ +on: + push: + branches: + - main + - quarto + +name: Render and Publish + +# you need these permissions to publish to GitHub pages +# permissions: +# contents: write +# pages: write + +jobs: + build-deploy: + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Quarto + uses: quarto-dev/quarto-actions/setup@v2 + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + #with: + # To install LaTeX to build PDF book + # tinytex: true + # uncomment below and fill to pin a version + # version: SPECIFIC-QUARTO-VERSION-HERE + + # - name: Publish to GitHub Pages (and render) + # uses: quarto-dev/quarto-actions/publish@v2 + # with: + # target: gh-pages + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Render Quarto Project + uses: quarto-dev/quarto-actions/render@v2