15
15
16
16
jobs :
17
17
release :
18
- runs-on : ubuntu-22 .04
18
+ runs-on : ubuntu-24 .04
19
19
20
20
steps :
21
21
# - name: test print
@@ -25,13 +25,16 @@ jobs:
25
25
26
26
# steps are copied from make.yml
27
27
28
- - name : checkout repository
28
+ - name : Checkout repository
29
29
uses : actions/checkout@v4
30
30
with :
31
31
persist-credentials : false
32
32
fetch-depth : 1 # 0 if you want to push to repo
33
33
34
- - name : caching LaTeX files
34
+ - name : Touch requirements.txt for pip caching
35
+ run : touch requirements.txt
36
+
37
+ - name : Cache LaTeX files
35
38
uses : actions/cache@v4
36
39
with :
37
40
path : |
@@ -45,34 +48,28 @@ jobs:
45
48
hpmor*.xdv
46
49
key : tex-cache
47
50
48
- - name : python set up
51
+ - name : Python set up
49
52
uses : actions/setup-python@v5
50
53
with :
51
- python-version : " 3.10"
52
- # cache: "pip"
53
-
54
- - name : python cache set up
55
- uses : actions/cache@v4
56
- with :
57
- path : ${{ env.pythonLocation }}
58
- key : ${{ env.pythonLocation }}-py-cache
54
+ python-version : " 3.12"
55
+ cache : " pip"
59
56
60
- - name : check chapters for known issues
57
+ - name : Check chapters for known issues
61
58
run : python3 scripts/check_chapters.py
62
59
63
- - name : check pre-commit tests
60
+ - name : Check pre-commit tests
64
61
uses :
pre-commit/[email protected]
65
62
66
- - name : install requirements
63
+ - name : Install requirements
67
64
run : sh scripts/install_requirements.sh > /dev/null
68
65
69
- - name : make PDFs
66
+ - name : Make PDFs
70
67
run : sh scripts/make_pdfs.sh > /dev/null
71
68
72
- - name : make eBooks
69
+ - name : Make eBooks
73
70
run : sh scripts/make_ebooks.sh
74
71
75
- - name : publish release
72
+ - name : Publish release
76
73
uses : softprops/action-gh-release@v2
77
74
with :
78
75
tag_name : " ${{ inputs.version_number }}"
0 commit comments