|
24 | 24 | image: ghcr.io/ximeraproject/ximeralatex:v2.7.5fix2 |
25 | 25 | options: >- |
26 | 26 | --workdir /code |
27 | | - --user 1000:1000 |
28 | 27 | permissions: |
29 | 28 | actions: read |
30 | 29 | contents: read |
|
35 | 34 | uses: actions/checkout@v4 |
36 | 35 | with: |
37 | 36 | fetch-depth: 0 |
38 | | - persist-credentials: true |
39 | 37 |
|
40 | 38 | # Restore cache for cross-run speedup |
41 | 39 | - name: "Prepare: Restore cache" |
|
61 | 59 |
|
62 | 60 | - name: "XIMERA: pdfexport (prepare for tikzpictures)" |
63 | 61 | run: | |
64 | | - # git config --global --add safe.directory /__w/calculus/calculus |
| 62 | + git config --global --add safe.directory "$GITHUB_WORKSPACE" |
65 | 63 | xmlatex bake --compile pdfexport -j 5 $XM_TO_PROCESS |
66 | 64 |
|
67 | | - # # Save cache for future runs |
68 | | - # - uses: actions/cache/save@v4 |
69 | | - # with: |
70 | | - # path: | |
71 | | - # **/*.pdf |
72 | | - # **/*.html |
73 | | - # **/*.aux |
74 | | - # **/*.log |
75 | | - # **/*.toc |
76 | | - # **/*.xref |
77 | | - # **/*.svg |
78 | | - # **/*.png |
79 | | - # !.git/** |
80 | | - # !.github/** |
81 | | - # key: ximeraPDFexport-${{ github.ref_name }}-latest |
82 | | - |
83 | 65 | # Upload artifact for next job |
84 | 66 | - name: "Postprocess: Save artifacts" |
85 | 67 | uses: actions/upload-artifact@v4 |
|
102 | 84 | - name: "Prepare: Checkout code" |
103 | 85 | uses: actions/checkout@v4 |
104 | 86 | with: |
105 | | - persist-credentials: true |
106 | 87 | fetch-depth: 0 |
107 | 88 |
|
108 | 89 | # Download artifact from previous job |
|
114 | 95 |
|
115 | 96 | - name: "XIMERA: htmlexport (generate html)" |
116 | 97 | run: | |
117 | | - git config --global --add safe.directory /__w/calculus/calculus |
118 | | - export TEXMFHOME=/root/texmf |
| 98 | + git config --global --add safe.directory "$GITHUB_WORKSPACE" |
119 | 99 | xmlatex bake --compile htmlexport -j 5 $XM_TO_PROCESS |
120 | 100 |
|
121 | 101 | # Save cache |
@@ -169,8 +149,7 @@ jobs: |
169 | 149 | - name: "XIMERA: Serve PREVIEW version to ximeraserver" |
170 | 150 | run: | |
171 | 151 | echo "Serving to $XIMERA_URL$XIMERA_NAME" |
172 | | - git config --global --add safe.directory /__w/calculus/calculus |
173 | | - export TEXMFHOME=/root/texmf |
| 152 | + git config --global --add safe.directory "$GITHUB_WORKSPACE" |
174 | 153 | xmlatex name |
175 | 154 | xmlatex frost $XM_TO_PROCESS |
176 | 155 | xmlatex serve $XM_TO_PROCESS |
|
0 commit comments