-
Notifications
You must be signed in to change notification settings - Fork 22
42 lines (39 loc) · 994 Bytes
/
release.yaml
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
name: Release
on:
workflow_dispatch:
push:
# tags:
# - '[0-9]+.[0-9]+.[0-9]+'
jobs:
pdf:
name: Build PDF
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:
cache: true
python-version-file: pyproject.toml
- name: Install requirements
run: pdm sync -dG doc
- name: Build PDF
run: pdm run make -C docs/ simplepdf
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: documentation
path: docs/build/simplepdf/*.pdf
retention-days: 1
release:
name: Publish GitHub Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: documentation
- uses: softprops/action-gh-release@v2
with:
files: documentation/*.pdf