Render and publish the manual #13
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: Render and publish the manual | |
on: | |
workflow_dispatch: | |
# pull_request: | |
# push: | |
# branches: ['release'] | |
jobs: | |
render-manual: | |
runs-on: ubuntu-latest | |
name: ${{ matrix.config.r }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { r: '4.3.2' } | |
steps: | |
- name: Install Google Fonts | |
run: | | |
wget -O architects_daughter.zip https://fonts.google.com/download?family=Architects%20Daughter | |
unzip -d architects_daughter/ architects_daughter.zip | |
mv architects_daughter /usr/share/fonts/ | |
fc-cache -fv | |
fc-list | |
fc-list -v | grep -i archi | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# install R | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.config.R }} | |
# - name: Install R | |
# run: sudo apt-get install r-base pandoc make | |
- name: install R packages | |
uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
cache-version: 2 | |
packages: | | |
any::rmarkdown | |
any::magick | |
any::pdftools | |
- name: install tinytex | |
uses: r-lib/actions/setup-tinytex@v2 | |
- run: tlmgr --version | |
- name: Install additional LaTeX packages | |
run: | | |
tlmgr install titlesec | |
tlmgr list --only-installed | |
# install quarto | |
- name: Install quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
# render manual | |
- name: Make manual | |
run: make -i docs_local | |
# Deploy site to gh-pages branch | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: docs |