Merge pull request 'Automatically determine version' (#11) from auto-version into main
Reviewed-on: wtf-eg/handbuch-gen#11
This commit is contained in:
commit
a65ea359d5
@ -32,8 +32,9 @@ steps:
|
|||||||
image: sphinxdoc/sphinx-latexpdf:5.0.2
|
image: sphinxdoc/sphinx-latexpdf:5.0.2
|
||||||
commands:
|
commands:
|
||||||
- apt-get update
|
- 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
|
- 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
|
- make -j4 bundle
|
||||||
- name: upload
|
- name: upload
|
||||||
image: alpine
|
image: alpine
|
||||||
@ -55,6 +56,6 @@ steps:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 7225cd21b9a1284bba09bd0f943e5873865f176e1dca49147ea8e309421e6726
|
hmac: 797e2df88805ae1dee84d60ec024034965dcf41fc2ef86d5667adfdfe10b2719
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -39,6 +39,12 @@ The top level directory contains a Makefile, for generation with all output form
|
|||||||
make bundle
|
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`.
|
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.
|
All generated intermediate artifacts and the final output files can be found in the `./build` subfolder.
|
||||||
|
@ -24,7 +24,10 @@ copyright = '2021, diverse'
|
|||||||
author = 'Autorenkollektiv'
|
author = 'Autorenkollektiv'
|
||||||
|
|
||||||
# The full version, including alpha/beta/rc tags
|
# 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 ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user