Added miror for CRAN #41
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: Build and deploy | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 5 1,15 * *' | |
jobs: | |
Build_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
with: | |
pandoc-version: '2.17.1' | |
- name: Install R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: '4.2.0' | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-renv@v2 | |
with: | |
cache-version: 1 | |
- name: Render html | |
run: Rscript -e "rmarkdown::render('index.Rmd')" | |
env: | |
ORCID_TOKEN: ${{ secrets.ORCID_TOKEN }} | |
- name: Render pdf | |
run: Rscript -e "pagedown::chrome_print(input = 'index.html', output = 'index.pdf', wait = 5)" | |
- name: Prepare deployment | |
run: | | |
mkdir docs | |
mv index.html docs/index.html | |
mv index.pdf docs/WillianVieira.pdf | |
- name: Deploy gh_pages | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: docs | |
SINGLE_COMMIT: true |