-
-
Notifications
You must be signed in to change notification settings - Fork 63
55 lines (45 loc) · 1.67 KB
/
book-weekly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
on:
workflow_dispatch:
schedule:
- cron: "0 13 * * 1" # Monday at 13:00 UTC
name: book-weekly
jobs:
book-weekly:
runs-on: ubuntu-latest
container:
image: mlrorgdocker/mlr3-book
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Update all packages
run: Rscript -e 'update.packages(ask = FALSE)'
- name: Install headless chromium
run: quarto tools install chromium
- name: Cache OpenML
uses: actions/cache@v4
id: openml-cache
with:
path: book/openml
key: ${{ runner.os }}-openml-${{ hashFiles('./book/chapters/chapter11/large-scale_benchmarking.qmd') }}-${{hashFiles('./book/chapters/appendices/solutions_large-scale_benchmarking.qmd')}}
restore-keys: ${{ runner.os }}-openml-
- name: Render book
run: quarto render book/ --cache-refresh --execute-debug
- name: Add .lycheeignore
run: cp .lycheeignore book/_book/.lycheeignore
- name: Deploy netlify preview
if: ${{ github.event_name == 'pull_request' }}
uses: mlr-org/actions/[email protected]
with:
netlify_auth_token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify_site_id: ${{ secrets.NETLIFY_SITE_ID }}
github_token: ${{ secrets.GITHUB_TOKEN }}
path: book/_book
netlify_url: mlr3book.netlify.app
- name: Upload pdf book
uses: actions/upload-artifact@v4
with:
name: mlr3book
path: book/_book/Applied-Machine-Learning-Using-mlr3-in-R.pdf
retention-days: 1