Ajouter une fiche arrow #918
Workflow file for this run
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: [pull_request] | |
name: test compilation PDF | |
jobs: | |
build: | |
if: "!contains(github.event.commits[0].message, '[skip ci]')" | |
runs-on: ubuntu-latest | |
container: inseefrlab/utilitr:latest | |
steps: | |
- name: Checkout Repository | |
if: ${{ github.repository == 'inseefrlab/utilitr' }} | |
env: | |
GITHUB_PAT: ${{ secrets.PAT }} | |
uses: actions/checkout@master | |
- name: Install Dependencies | |
if: ${{ github.repository == 'inseefrlab/utilitr' }} | |
env: | |
GITHUB_PAT: ${{ secrets.PAT }} | |
run: | | |
Rscript -e "install.packages(c('remotes'))" | |
Rscript -e "remotes::install_github('rstudio/rmarkdown')" | |
Rscript -e "remotes::install_github('rstudio/pagedown')" | |
Rscript -e "remotes::install_github('rstudio/htmltools')" | |
- name: Render Book | |
run: | | |
mkdir _pagedown_output -p | |
Rscript -e "utilitr::pdf_document()" | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: DocumentationR_pagedown | |
path: _pagedown_output/DocumentationR.pdf | |
retention-days: 5 |