update workflow #1
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
name: Deploy to RStudio Connect | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
container: | |
image: rocker/verse:latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: install2.r --error pak | |
- name: Install fusen | |
run: | | |
pak::pak("fusen") | |
fusen::inflate(flat_file = "dev/flat_first.Rmd",check = FALSE,open_vignette = FALSE,document = TRUE,overwrite = "yes") | |
shell: Rscript {0} | |
- name: Push results | |
run: | | |
git add --all * | |
git commit -m "inflate Update" | |
git push -q https://${{secrets.GH_TOKEN}}@github.com/${{secrets.GH_REPOSITORY}}.git HEAD:master |