Automatically determine version
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Brain 2022-09-16 15:30:48 +02:00
parent b838a57b3f
commit f75df5a7a8
Signed by: Brain
GPG Key ID: 9CF47083EE57670D
3 changed files with 13 additions and 3 deletions

View File

@ -32,8 +32,9 @@ steps:
image: sphinxdoc/sphinx-latexpdf:5.0.2
commands:
- apt-get update
- apt-get -y install texlive-lang-german rsync
- apt-get -y install texlive-lang-german rsync git
- pip install -r requirements.txt
- export SPHINXOPTS="-D version=$(git -C source/handbuch describe --tags --abbrev=0) -D release=$(git -C source/handbuch describe --tags)"
- make -j4 bundle
- name: upload
image: alpine
@ -55,6 +56,6 @@ steps:
---
kind: signature
hmac: 7225cd21b9a1284bba09bd0f943e5873865f176e1dca49147ea8e309421e6726
hmac: 797e2df88805ae1dee84d60ec024034965dcf41fc2ef86d5667adfdfe10b2719
...

View File

@ -39,6 +39,12 @@ The top level directory contains a Makefile, for generation with all output form
make bundle
`````
In order to automatically determine the version string from the latest Git tag, execute the following command before calling `make`:
```
export SPHINXOPTS="-D version=$(git -C source/handbuch describe --tags --abbrev=0) -D release=$(git -C source/handbuch describe --tags)"
```
The output files of the final handbook can be found in the subfolder `./bundle`.
All generated intermediate artifacts and the final output files can be found in the `./build` subfolder.

View File

@ -24,7 +24,10 @@ copyright = '2021, diverse'
author = 'Autorenkollektiv'
# The full version, including alpha/beta/rc tags
release = '0.2.0'
release = '0.0.0'
# The major project version, without alpha/beta/rc tags
version = '0.0.0'
# -- General configuration ---------------------------------------------------