Skip to content

Commit d8376ea

Browse files
committed
CI: move docs job into separate workflow
1 parent 691ac4c commit d8376ea

File tree

2 files changed

+35
-18
lines changed

2 files changed

+35
-18
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,3 @@ jobs:
4949
- uses: codecov/codecov-action@v5
5050
with:
5151
token: ${{ secrets.CODECOV_TOKEN }}
52-
53-
# The documentation job
54-
manual:
55-
name: Build manuals
56-
runs-on: ubuntu-latest
57-
58-
steps:
59-
- uses: actions/checkout@v5
60-
- uses: gap-actions/setup-gap@v2
61-
- uses: gap-actions/build-pkg-docs@v1
62-
with:
63-
use-latex: 'true'
64-
- name: 'Upload documentation'
65-
uses: actions/upload-artifact@v4
66-
with:
67-
name: manual
68-
path: ./doc/manual.pdf
69-
if-no-files-found: error

.github/workflows/docs.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Docs
2+
3+
# Trigger the workflow on push or pull request
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
pull_request:
10+
11+
# the `concurrency` settings ensure that not too many CI jobs run in parallel
12+
concurrency:
13+
# group by workflow and ref; the last slightly strange component ensures that for pull
14+
# requests, we limit to 1 concurrent job, but for the default repository branch we don't
15+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref_name != github.event.repository.default_branch || github.run_number }}
16+
# Cancel intermediate builds, but only if it is a pull request build.
17+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
18+
19+
jobs:
20+
manual:
21+
name: Build manuals
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v5
26+
- uses: gap-actions/setup-gap@v3
27+
- uses: gap-actions/build-pkg-docs@v2
28+
with:
29+
use-latex: 'true'
30+
- name: 'Upload documentation'
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: manual
34+
path: ./doc/manual.pdf
35+
if-no-files-found: error

0 commit comments

Comments
 (0)