Skip to content

Commit 7e28933

Browse files
committed
CI: move docs job into separate workflow
1 parent ce360ed commit 7e28933

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