Skip to content

Commit 407783b

Browse files
committed
CI: move docs job into separate workflow
1 parent 259140c commit 407783b

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
@@ -48,21 +48,3 @@ jobs:
4848
- uses: codecov/codecov-action@v5
4949
with:
5050
token: ${{ secrets.CODECOV_TOKEN }}
51-
52-
# The documentation job
53-
manual:
54-
name: Build manuals
55-
runs-on: ubuntu-latest
56-
57-
steps:
58-
- uses: actions/checkout@v5
59-
- uses: gap-actions/setup-gap@v2
60-
- uses: gap-actions/build-pkg-docs@v1
61-
with:
62-
use-latex: 'true'
63-
- name: 'Upload documentation'
64-
uses: actions/upload-artifact@v4
65-
with:
66-
name: manual
67-
path: ./doc/manual.pdf
68-
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)