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
|
fetch-depth: 0
|
||||||
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
|
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
|
||||||
- name: CircuitPython version
|
- 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
|
- name: Set up Python 3.8
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
|
@ -68,7 +70,7 @@ jobs:
|
||||||
name: stubs
|
name: stubs
|
||||||
path: circuitpython-stubs*
|
path: circuitpython-stubs*
|
||||||
- name: Docs
|
- 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
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: docs
|
name: docs
|
||||||
|
|
Loading…
Reference in New Issue