File tree Expand file tree Collapse file tree 4 files changed +22
-5
lines changed Expand file tree Collapse file tree 4 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 17
17
with :
18
18
fetch-depth : 0
19
19
20
+ - name : Set release/tag
21
+ run : |
22
+ git describe --tags --long --always > RELEASE || true
23
+ git describe --tags --exact-match > TAG || true
24
+
20
25
- name : Build
21
- uses : docker://ghcr .io/kastelo /sphinx-build
26
+ uses : docker://docker .io/sphinxdoc /sphinx-latexpdf:latest
22
27
with :
23
28
entrypoint : make
24
29
args : html man latexpdf
Original file line number Diff line number Diff line change 2
2
_deployed
3
3
_deployed.old
4
4
_syncthing
5
+ /RELEASE
6
+ /TAG
Original file line number Diff line number Diff line change 62
62
# built documents.
63
63
#
64
64
# The full version, including alpha/beta/rc tags.
65
+
66
+ release = 'v1'
65
67
try :
68
+ release = open ('RELEASE' , 'r' ).read ().strip ()
69
+ except FileNotFoundError :
66
70
release = os .popen ('git describe --tags --long --always' ).read ().strip ()
71
+
72
+ _git_tag = ''
73
+ try :
74
+ _git_tag = open ('TAG' , 'r' ).read ().strip ()
75
+ except FileNotFoundError :
67
76
_git_tag = os .popen ('git describe --tags --exact-match' ).read ().strip ()
68
- except Exception :
69
- release = 'v1'
70
- _git_tag = ''
77
+
71
78
# The short X.Y version.
72
79
version = release .partition ('-' )[0 ]
73
80
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -euo pipefail
3
3
4
+ git describe --tags --long --always > RELEASE || true
5
+ git describe --tags --exact-match > TAG || true
6
+
4
7
target=" ${1:- html} "
5
8
docker run --rm \
6
9
-v " $( pwd) :$( pwd) " \
7
10
-w " $( pwd) " \
8
- ghcr .io/kastelo /sphinx-build :latest \
11
+ docker .io/sphinxdoc /sphinx-latexpdf :latest \
9
12
make " $target "
You can’t perform that action at this time.
0 commit comments