-
Notifications
You must be signed in to change notification settings - Fork 401
57 lines (43 loc) · 1.19 KB
/
main.yml
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: Test and release
on:
push:
pull_request:
jobs:
test:
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up TeX Live
uses: zauguin/install-texlive@v3
with:
package_file: .github/tl_packages
- name: Test thesis
run: make main
- name: Test doc
run: make doc
- name: Run l3build
run: make test
- name: Archive failed test output
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: testfiles
path: build/**/*.diff
retention-days: 3
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: test
name: Release on GitHub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract release notes
run: awk '/^#+ \[/ { if (p) { exit }; if ($2 != "[Unreleased]") { p=1 } } p' CHANGELOG.md > release-notes.md
- name: Create GitHub release
uses: ncipollo/release-action@v1
with:
bodyFile: "release-notes.md"