Updated watermark #9
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: Generate docs | |
on: | |
push: | |
paths: | |
- '.github/workflows/docs.yml' | |
- 'papers/**' | |
- 'thesis/**' | |
- 'slides/**' | |
- 'project/**' | |
- 'Makefile' | |
release: | |
types: | |
- created | |
- edited | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install aspell with Spanish dictionary | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y aspell aspell-es | |
- name: Set up R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: Install packages | |
uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
cache-version: 2 | |
packages: | | |
any::ggplot2 | |
any::ggthemes | |
any::rmarkdown | |
any::knitr | |
- name: Setup Pandoc | |
uses: r-lib/actions/setup-pandoc@v2 | |
- name: Set up Tectonic | |
uses: wtfjoke/setup-tectonic@v3 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Marp | |
run: npm install -g @marp-team/marp-cli | |
- name: Generate PDFs | |
run: make all | |
- name: Upload PDFs to Pre-release | |
if: github.event_name == 'push' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: PDFs | |
path: output/**/*.pdf | |
- name: Pre-Release PDFs | |
if: github.event_name == 'push' | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: 'output/**/*.pdf' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
prerelease: true | |
tag: pre-release | |
allowUpdates: true | |
- name: Release PDFs | |
if: github.event_name == 'release' | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: 'output/**/*.pdf' | |
token: ${{ secrets.GITHUB_TOKEN }} |