diff --git a/.Rbuildignore b/.Rbuildignore new file mode 100644 index 0000000..c503c4f --- /dev/null +++ b/.Rbuildignore @@ -0,0 +1 @@ +^\.github$ 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-app.yaml b/.github/workflows/deploy-app.yaml new file mode 100644 index 0000000..1610a76 --- /dev/null +++ b/.github/workflows/deploy-app.yaml @@ -0,0 +1,23 @@ +# Workflow derived from https://github.com/posit-dev/r-shinylive/tree/actions-v1/examples +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help +# +# Basic example of a GitHub Actions workflow that builds a Shiny app and deploys +# it to GitHub Pages. +name: Deploy app to gh-pages + +on: + # Manually trigger the workflow + workflow_dispatch: + # Trigger on push to `main` branch + push: + branches: ["main"] + # Trigger on pull request to all branches (but do not deploy to gh-pages) + pull_request: + +jobs: + shinylive: + uses: posit-dev/r-shinylive/.github/workflows/deploy-app.yaml@actions-v1 + # Grant GITHUB_TOKEN the permissions required to make a Pages deployment + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source