-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.32 KB
/
Copy pathbuild.yaml
File metadata and controls
57 lines (49 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build Document
on:
push:
tags:
- '*'
workflow_dispatch:
inputs:
disable_docker_cache:
type: boolean
description: Forces docker image rebuild
default: false
skip_release:
type: boolean
description: Do not create a release from this run
default: false
jobs:
build-latex:
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Docker Image
uses: ScribeMD/docker-cache@0.5.0
if: ${{ ! github.event.inputs.disable_docker_cache }}
with:
key: docker-${{ runner.os }}-${{ hashFiles('.devcontainer/Dockerfile') }}
- name: Build image
run: |
docker build \
-f .devcontainer/Dockerfile \
-t thesis-builder:ci \
.
- name: Run latexmk
run: |
docker run --rm \
-v "$GITHUB_WORKSPACE":/workspace \
-w /workspace \
thesis-builder:ci \
latexmk
- name: Create Release
uses: softprops/action-gh-release@v2
if: ${{ ! github.event.inputs.skip_release }}
with:
name: Release ${{ github.ref_name }}
generate_release_notes: true
files: |
dist/*.pdf