Restart renv to see if ga workflow bugs are fixed #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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] | |
name: shiny-deploy | |
jobs: | |
shiny-deploy: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- name: Install GDAL, Proj, and GEOS development libraries | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libudunits2-dev libgdal-dev libgeos-dev libproj-dev | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: 4.2.1 | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-renv@v2 | |
- name: Install rsconnect | |
run: install.packages("rsconnect") | |
shell: Rscript {0} | |
- name: Authorize and deploy app | |
env: | |
# Provide your app name, account name, and server to be deployed below | |
APPNAME: neotoma-lakes | |
ACCOUNT: flor | |
SERVER: shinyapps.io # server to deploy | |
run: | | |
rsconnect::setAccountInfo("${{ secrets.RSCONNECT_USER }}", "${{ secrets.RSCONNECT_TOKEN }}", "${{ secrets.RSCONNECT_SECRET }}") | |
rsconnect::deployApp(appName = "${{ env.APPNAME }}", account = "${{ env.ACCOUNT }}", server = "${{ env.SERVER }}") | |
shell: Rscript {0} |