From 5a7f583a5c47394a28e68cbede2ff88d910b9d11 Mon Sep 17 00:00:00 2001 From: erikarasnick Date: Wed, 4 Oct 2023 16:34:42 -0400 Subject: [PATCH] try gha --- .github/.gitignore | 1 + .github/workflows/deploy-pages.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/.gitignore create mode 100644 .github/workflows/deploy-pages.yml diff --git a/.github/.gitignore b/.github/.gitignore new file mode 100644 index 0000000..2d19fc7 --- /dev/null +++ b/.github/.gitignore @@ -0,0 +1 @@ +*.html diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml new file mode 100644 index 0000000..622c4c1 --- /dev/null +++ b/.github/workflows/deploy-pages.yml @@ -0,0 +1,30 @@ +# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +name: deploy-pages + +jobs: + deploy-pages: + runs-on: ubuntu-latest + # Only restrict concurrency for non-PR jobs + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + permissions: + contents: write + steps: + - name: Build site + run: rmarkdown::render_site(encoding = 'UTF-8') + shell: Rscript {0} + + - name: Deploy to GitHub pages 🚀 + if: github.event_name != 'pull_request' + uses: JamesIves/github-pages-deploy-action@v4.4.1 + with: + clean: false + branch: gh-pages + folder: docs