diff options
| author | George Waters <gwatersdev@gmail.com> | 2020-07-09 15:13:48 -0400 |
|---|---|---|
| committer | George Waters <gwatersdev@gmail.com> | 2020-07-09 15:32:19 -0400 |
| commit | a7634e8bf226e1caf965684767498ce1b74ac8e6 (patch) | |
| tree | bc364137e31fa3533aac4d66915704b0e477a368 /.github | |
| parent | 01b2682842f47afbe27bbfcd0f00db96f764fea2 (diff) | |
Set version and release in build workflow
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fa7dd9dd2..463f1c680 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 |
