|
9 | 9 | steps: |
10 | 10 | - name: Checkout |
11 | 11 | uses: actions/checkout@v4 |
12 | | - |
13 | 12 | - name: Build cv-full.pdf |
14 | 13 | uses: xu-cheng/latex-action@v3 |
15 | 14 | with: |
16 | 15 | root_file: cv.tex |
17 | 16 | latexmk_use_xelatex: true |
18 | 17 | pre_compile: | |
19 | 18 | cp config/full.tex cv-preset.tex |
20 | | - xelatex -interaction=nonstopmode cv.tex |
| 19 | + xelatex -interaction=nonstopmode cv.tex || true |
21 | 20 | biber cv |
22 | 21 | xelatex -interaction=nonstopmode cv.tex |
23 | 22 | xelatex -interaction=nonstopmode cv.tex |
24 | 23 | post_compile: mv cv.pdf cv-full.pdf |
25 | | - |
26 | 24 | - name: Build cv-industry.pdf |
27 | 25 | uses: xu-cheng/latex-action@v3 |
28 | 26 | with: |
29 | 27 | root_file: cv.tex |
30 | 28 | latexmk_use_xelatex: true |
31 | 29 | pre_compile: | |
32 | 30 | cp config/industry.tex cv-preset.tex |
33 | | - xelatex -interaction=nonstopmode cv.tex |
| 31 | + xelatex -interaction=nonstopmode cv.tex || true |
34 | 32 | biber cv |
35 | 33 | xelatex -interaction=nonstopmode cv.tex |
36 | 34 | xelatex -interaction=nonstopmode cv.tex |
37 | 35 | post_compile: mv cv.pdf cv-industry.pdf |
38 | | - |
39 | 36 | - name: Build cv-speaking.pdf |
40 | 37 | uses: xu-cheng/latex-action@v3 |
41 | 38 | with: |
42 | 39 | root_file: cv.tex |
43 | 40 | latexmk_use_xelatex: true |
44 | 41 | pre_compile: | |
45 | 42 | cp config/speaking.tex cv-preset.tex |
| 43 | + xelatex -interaction=nonstopmode cv.tex || true |
| 44 | + biber cv |
| 45 | + xelatex -interaction=nonstopmode cv.tex |
| 46 | + xelatex -interaction=nonstopmode cv.tex |
| 47 | + post_compile: mv cv.pdf cv-speaking.pdf |
| 48 | + - name: Release |
| 49 | + uses: softprops/action-gh-release@v2 |
| 50 | + with: |
| 51 | + tag_name: cv-${{ github.sha }} |
| 52 | + name: "CV build ${{ github.sha }}" |
| 53 | + files: | |
| 54 | + cv-full.pdf |
| 55 | + cv-industry.pdf |
| 56 | + cv-speaking.pdf |
| 57 | + env: |
| 58 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}name: Build CV |
| 59 | +on: |
| 60 | + push: |
| 61 | + branches: [main] |
| 62 | + workflow_dispatch: |
| 63 | +jobs: |
| 64 | + build: |
| 65 | + runs-on: ubuntu-latest |
| 66 | + steps: |
| 67 | + - name: Checkout |
| 68 | + uses: actions/checkout@v4 |
| 69 | + - name: Build cv-full.pdf |
| 70 | + uses: xu-cheng/latex-action@v3 |
| 71 | + with: |
| 72 | + root_file: cv.tex |
| 73 | + latexmk_use_xelatex: true |
| 74 | + pre_compile: | |
| 75 | + cp config/full.tex cv-preset.tex |
| 76 | + xelatex -interaction=nonstopmode cv.tex || true |
| 77 | + biber cv |
46 | 78 | xelatex -interaction=nonstopmode cv.tex |
| 79 | + xelatex -interaction=nonstopmode cv.tex |
| 80 | + post_compile: mv cv.pdf cv-full.pdf |
| 81 | + - name: Build cv-industry.pdf |
| 82 | + uses: xu-cheng/latex-action@v3 |
| 83 | + with: |
| 84 | + root_file: cv.tex |
| 85 | + latexmk_use_xelatex: true |
| 86 | + pre_compile: | |
| 87 | + cp config/industry.tex cv-preset.tex |
| 88 | + xelatex -interaction=nonstopmode cv.tex || true |
| 89 | + biber cv |
| 90 | + xelatex -interaction=nonstopmode cv.tex |
| 91 | + xelatex -interaction=nonstopmode cv.tex |
| 92 | + post_compile: mv cv.pdf cv-industry.pdf |
| 93 | + - name: Build cv-speaking.pdf |
| 94 | + uses: xu-cheng/latex-action@v3 |
| 95 | + with: |
| 96 | + root_file: cv.tex |
| 97 | + latexmk_use_xelatex: true |
| 98 | + pre_compile: | |
| 99 | + cp config/speaking.tex cv-preset.tex |
| 100 | + xelatex -interaction=nonstopmode cv.tex || true |
47 | 101 | biber cv |
48 | 102 | xelatex -interaction=nonstopmode cv.tex |
49 | 103 | xelatex -interaction=nonstopmode cv.tex |
50 | 104 | post_compile: mv cv.pdf cv-speaking.pdf |
51 | | - |
52 | 105 | - name: Release |
53 | 106 | uses: softprops/action-gh-release@v2 |
54 | 107 | with: |
|
0 commit comments