Skip to content

Merge overleaf-2023-11-09-1519 into master #49

Merge overleaf-2023-11-09-1519 into master

Merge overleaf-2023-11-09-1519 into master #49

name: Compile all
on: push
jobs:
compile:
name: Compile
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
week: [
"w00_init",
"w01_big_picture",
"w02_basics",
"w03_policy_evaluation",
"w04_model_free_control",
"w05_function_approx",
"w06_deep_rl",
"w07_policy_search",
"w08_exploration",
"w09_meta_rl_new",
"w10_autoRL",
"w11_wrap_up"
]
mode: [
"animation",
"handout",
]
steps:
- uses: actions/checkout@v3
- name: compile week ${{ matrix.week }} with xelatex
uses: ./.github/actions/xelatex-week
with:
folder: ${{ matrix.week }}
mode: ${{ matrix.mode }}
- uses: actions/upload-artifact@v3
with:
name: Slides ${{ matrix.week }} (${{ matrix.mode }})
path: ${{ matrix.week }}/${{ matrix.mode }}/*.pdf
merge:
name: Merge slides
needs: compile
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
week: [
"w01_big_picture",
"w02_basics",
"w03_policy_evaluation",
"w04_model_free_control",
"w05_function_approx",
"w06_deep_rl",
"w07_policy_search",
"w08_exploration",
"w09_meta_rl_new",
"w10_autoRL",
"w11_wrap_up"
]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: Slides ${{ matrix.week }} (handout)
path: ${{ matrix.week }}/
- name: Prepare output folder
run: sh -c "[[ -d slides ]] || mkdir slides"
- name: Merge slides for week ${{ matrix.week }} with pdftk
uses: ./.github/actions/merge-pdftk
with:
input-pattern: ${{ matrix.week }}/t*.pdf
output-name: slides/${{ matrix.week }}.pdf
- uses: actions/upload-artifact@v2
with:
name: Merged slides
path: slides/*.pdf