Skip to content

Commit 37e77b2

Browse files
authored
Merge pull request #3140 from dunkmann00/docs-version-conf
Set version and release in build workflow
2 parents 41fe629 + a7634e8 commit 37e77b2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
fetch-depth: 0
2323
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
2424
- name: CircuitPython version
25-
run: git describe --dirty --tags
25+
run: |
26+
git describe --dirty --tags
27+
echo "::set-env name=CP_VERSION::$(git describe --dirty --tags)"
2628
- name: Set up Python 3.8
2729
uses: actions/setup-python@v1
2830
with:
@@ -68,7 +70,7 @@ jobs:
6870
name: stubs
6971
path: circuitpython-stubs*
7072
- name: Docs
71-
run: sphinx-build -E -W -b html . _build/html
73+
run: sphinx-build -E -W -b html -D version=${{ env.CP_VERSION }} -D release=${{ env.CP_VERSION }} . _build/html
7274
- uses: actions/upload-artifact@v2
7375
with:
7476
name: docs

0 commit comments

Comments
 (0)