Updates from Overleaf #48
Workflow file for this run
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: 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 | |