Skip to content

Commit 1557e7e

Browse files
committed
Add release workflow
1 parent 4abd4b4 commit 1557e7e

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
# Trigger the workflow on push or pull request
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
dry-run:
8+
description: "Do not upload the release to GitHub"
9+
type: boolean
10+
required: false
11+
default: false
12+
13+
permissions: write-all
14+
15+
jobs:
16+
release:
17+
name: "Release the GAP package"
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v5
22+
- uses: gap-actions/setup-gap@v2
23+
with:
24+
GAP_PKGS_TO_BUILD: json
25+
- uses: gap-actions/build-pkg-docs@v1
26+
with:
27+
use-latex: true
28+
warnings-as-errors: false
29+
# Disable warnings as we we get errors triggered by the GAP
30+
# reference manual and I have no idea what causes them or how to
31+
# deal with them. E.g.:
32+
#
33+
# Section: "ref:specialpcgs" already defined as: 45.13.0
34+
# Now being redefined as: 45.13.2
35+
36+
- uses: gap-actions/release-pkg@v1
37+
with:
38+
dry-run: ${{ inputs.dry-run }}
39+
- uses: gap-actions/update-gh-pages@v1
40+
if: ${{ !inputs.dry-run }}

0 commit comments

Comments
 (0)