Skip to content

Updates from Overleaf #48

Updates from Overleaf

Updates from Overleaf #48

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",
"w10_autoRL",
"w11_wrap_up"
]
mode: [
"animation",
"handout",
]
steps:
- uses: actions/checkout@v2
- name: compile week ${{ matrix.week }} with xelatex
uses: ./.github/actions/xelatex-week
with:
folder: ${{ matrix.week }}
mode: ${{ matrix.mode }}
- uses: actions/upload-artifact@v2
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@v2
- uses: actions/download-artifact@v2
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