Skip to content

Commit 76a8b4d

Browse files
committed
ci: rename variable used for setting pyocd release version
1 parent 89f91a1 commit 76a8b4d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/release_builds.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@ jobs:
4040
shell: bash
4141
run: |
4242
pip install setuptools-scm
43-
ver=$(python -c "import setuptools_scm; print(setuptools_scm.get_version())")
44-
echo "VERSION=$ver" >> $GITHUB_ENV
45-
echo "Version: $ver"
43+
version=$(python -c "import setuptools_scm; print(setuptools_scm.get_version())")
44+
echo "PYOCD_VERSION=$version" >> $GITHUB_ENV
45+
echo "Version: $version"
4646
4747
- name: Install packages
4848
env:
49-
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ env.VERSION }}
49+
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ env.PYOCD_VERSION }}
5050
run: pip install . build twine pyinstaller
5151

5252
- name: Build wheel and source distribution
5353
env:
54-
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ env.VERSION }}
54+
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ env.PYOCD_VERSION }}
5555
run: python -m build
5656

5757
- name: Check distribution files
@@ -76,15 +76,15 @@ jobs:
7676
- name: Upload PyInstaller artifacts
7777
uses: actions/upload-artifact@v4
7878
with:
79-
name: ${{ matrix.artifact_name }}-${{ env.VERSION }}
79+
name: ${{ matrix.artifact_name }}-${{ env.PYOCD_VERSION }}
8080
path: dist/pyocd/*
8181
retention-days: 7
8282

8383
- name: Upload distribution artifacts
8484
uses: actions/upload-artifact@v4
8585
if: matrix.os == 'ubuntu-latest'
8686
with:
87-
name: pyocd-distribution-${{ env.VERSION }}
87+
name: pyocd-distribution-${{ env.PYOCD_VERSION }}
8888
path: |
8989
dist/*.whl
9090
dist/*.tar.gz

0 commit comments

Comments
 (0)