-
Notifications
You must be signed in to change notification settings - Fork 57
33 lines (31 loc) · 1.09 KB
/
pagedown-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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