simplify action #35
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
on: | |
push: | |
branches: main | |
name: publish | |
jobs: | |
publish: | |
runs-on: macOS-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUBPAT }} | |
TORCH_INSTALL: 1 | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: false | |
steps: | |
- name: Checkout repo | |
uses: actions/[email protected] | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v2 | |
- name: Install system requirements | |
run: | | |
brew install pandoc | |
- name: Build design specification | |
run: | | |
install.packages("bookdown") | |
bookdown::render_book(input = "index.Rmd", output_format = "bookdown::gitbook") | |
shell: Rscript {0} | |
- name: Publish design specification | |
run: | | |
./inst/publish.sh |