diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..1a86807 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,32 @@ +on: + push: + branches: main + pull_request: + branches: main + workflow_dispatch: + +name: Build Site + +jobs: + build-website: + runs-on: ubuntu-latest + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v2 + + - name: Install Quarto CLI + uses: quarto-dev/quarto-actions/setup@v2 + with: + tinytex: true + version: 1.4.547 + + - name: Render Quarto Project + uses: quarto-dev/quarto-actions/render@v2 + + - name: Deploy 🚀 + if: github.event_name != 'pull_request' + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: gh-pages # The branch the action should deploy to. + folder: _site # The folder the action should deploy. \ No newline at end of file diff --git a/.gitignore b/.gitignore index cba43cc..c3c712c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ .Ruserdata /.quarto/ +_site/ \ No newline at end of file