File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -18,31 +18,36 @@ jobs:
18
18
with :
19
19
python-version : ' 3.12'
20
20
21
+ - name : Install Poetry
22
+ run : |
23
+ curl -sSL https://install.python-poetry.org | python3 -
24
+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> $GITHUB_ENV
25
+ export PATH="$HOME/.local/bin:$PATH"
26
+
21
27
- name : Install Dependencies
22
28
run : |
23
- python -m pip install --upgrade pip
24
- pip install jupyter nbconvert quarto-cli
29
+ poetry install
25
30
26
31
- name : Convert Notebooks to QMD
27
32
run : |
28
33
mkdir -p qmd
29
34
for notebook in $(find . -name "*.ipynb"); do
30
- jupyter nbconvert --to markdown --output-dir=qmd "$notebook"
35
+ poetry run jupyter nbconvert --to markdown --output-dir=qmd "$notebook"
31
36
done
32
37
33
38
- name : Create Index File
34
39
run : |
35
40
echo "# Index" > qmd/index.qmd
36
41
for file in $(ls qmd/*.md); do
37
- title=$(basename "$file" .md)
38
- echo "- [$title](./$title.html)" >> qmd/index.qmd
42
+ title=$(basename "$file" .md)
43
+ echo "- [$title](./$title.html)" >> qmd/index.qmd
39
44
done
40
45
41
46
- name : Render QMD Files
42
47
run : |
43
48
mkdir -p rendered
44
49
for qmd in $(find qmd -name "*.qmd"); do
45
- quarto render "$qmd" --to html --output-dir rendered
50
+ poetry run quarto render "$qmd" --to html --output-dir rendered
46
51
done
47
52
48
53
- name : Move rendered files to docs
55
60
56
61
with :
57
62
github_token : ${{ secrets.GITHUB_TOKEN }}
58
- branch : main
63
+ branch : main
You can’t perform that action at this time.
0 commit comments