Merge pull request #3140 from dunkmann00/docs-version-conf
Set version and release in build workflow
This commit is contained in:
commit
37e77b21cd
|
@ -22,7 +22,9 @@ jobs:
|
|||
fetch-depth: 0
|
||||
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
|
||||
- name: CircuitPython version
|
||||
run: git describe --dirty --tags
|
||||
run: |
|
||||
git describe --dirty --tags
|
||||
echo "::set-env name=CP_VERSION::$(git describe --dirty --tags)"
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
|
@ -68,7 +70,7 @@ jobs:
|
|||
name: stubs
|
||||
path: circuitpython-stubs*
|
||||
- name: Docs
|
||||
run: sphinx-build -E -W -b html . _build/html
|
||||
run: sphinx-build -E -W -b html -D version=${{ env.CP_VERSION }} -D release=${{ env.CP_VERSION }} . _build/html
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: docs
|
||||
|
|
Loading…
Reference in New Issue