From a618f55c7d8fb29497ff26814a09a0a6cfd667cf Mon Sep 17 00:00:00 2001 From: Hans Scharler Date: Thu, 31 Oct 2024 16:08:46 -0400 Subject: [PATCH] Update python-publish.yml --- .github/workflows/python-publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index b3d40eb..146d81c 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -26,14 +26,16 @@ jobs: uses: actions/setup-python@v3 with: python-version: '3.x' + - name: Set version + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV - name: Install dependencies run: | python -m pip install --upgrade pip pip install build - name: Build package env: - RELEASE_VERSION: ${{ github.event.release.tag_name }} - run: python -m build --outdir dist --version $RELEASE_VERSION + RELEASE_VERSION: ${{ env.RELEASE_VERSION }} + run: python -m build - name: Publish package uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 with: