summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2020-07-10 11:15:23 -0700
committerGitHub <noreply@github.com>2020-07-10 11:15:23 -0700
commit37e77b21cd3e33b00675310e4070e115d3c2357c (patch)
tree824110fe961ef31c0a4ad89abcac1d7e1c8a88b6 /.github/workflows
parent41fe62929f268bfc1f2b06be8b649409234d9d1a (diff)
parenta7634e8bf226e1caf965684767498ce1b74ac8e6 (diff)
Merge pull request #3140 from dunkmann00/docs-version-conf
Set version and release in build workflow
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b5b793f84..d4b1cf5fe 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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