|
5 | 5 | tikz_image: hapostgres/latexmk-pdftocairo:latest |
6 | 6 |
|
7 | 7 | on: |
8 | | - push: |
| 8 | + pull_request: |
9 | 9 | branches: |
10 | 10 | - main |
11 | | - pull_request: |
| 11 | + push: |
12 | 12 | branches: |
13 | 13 | - main |
14 | 14 |
|
15 | 15 | workflow_dispatch: |
16 | 16 |
|
17 | 17 | jobs: |
18 | 18 | docs: |
19 | | - name: Building docs |
| 19 | + name: Build sphinx html |
20 | 20 | runs-on: ubuntu-latest |
21 | 21 | strategy: |
22 | | - fail-fast: false |
| 22 | + fail-fast: true |
23 | 23 | steps: |
24 | 24 | - name: Checkout repository |
25 | 25 | uses: actions/checkout@v4 |
26 | 26 |
|
27 | 27 | - name: Set up Docker Buildx |
28 | 28 | uses: docker/setup-buildx-action@v3 |
29 | 29 |
|
30 | | - - name: Build hapostgres/latexmk-pdftocairo docker image |
31 | | - uses: docker/build-push-action@v5 |
32 | | - with: |
33 | | - context: ./docs/tikz |
34 | | - load: true |
35 | | - tags: ${{ env.tikz_image }} |
36 | | - cache-from: type=gha |
37 | | - cache-to: type=gha,mode=min |
38 | | - |
39 | | - - name: Build pdf/png/svg files |
40 | | - run: docker run --rm -v ./docs/tikz:/tikz ${{ env.tikz_image }} make all |
41 | | - |
42 | 30 | - name: Build hapostgres/sphinx-citus docker image |
43 | 31 | uses: docker/build-push-action@v5 |
44 | 32 | with: |
|
50 | 38 |
|
51 | 39 | - name: Build docs with sphinx |
52 | 40 | run: docker run --rm -v ./docs:/docs ${{ env.sphinx_image }} make html |
| 41 | + |
| 42 | + pictures: |
| 43 | + name: Building latexmk/pdftocario pictures |
| 44 | + runs-on: ubuntu-latest |
| 45 | + strategy: |
| 46 | + fail-fast: true |
| 47 | + steps: |
| 48 | + - name: Checkout repository |
| 49 | + uses: actions/checkout@v4 |
| 50 | + |
| 51 | + - name: Set up Docker Buildx |
| 52 | + uses: docker/setup-buildx-action@v3 |
| 53 | + |
| 54 | + - name: Build hapostgres/latexmk-pdftocairo docker image |
| 55 | + uses: docker/build-push-action@v5 |
| 56 | + with: |
| 57 | + context: ./docs/tikz |
| 58 | + load: true |
| 59 | + tags: ${{ env.tikz_image }} |
| 60 | + cache-from: type=gha |
| 61 | + cache-to: type=gha,mode=min |
| 62 | + |
| 63 | + - name: Build pdf/png/svg files |
| 64 | + run: docker run --rm -v ./docs/tikz:/tikz ${{ env.tikz_image }} make all |
0 commit comments