Skip to content

Commit a618f55

Browse files
committed
Update python-publish.yml
1 parent 56745fc commit a618f55

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@ jobs:
2626
uses: actions/setup-python@v3
2727
with:
2828
python-version: '3.x'
29+
- name: Set version
30+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
2931
- name: Install dependencies
3032
run: |
3133
python -m pip install --upgrade pip
3234
pip install build
3335
- name: Build package
3436
env:
35-
RELEASE_VERSION: ${{ github.event.release.tag_name }}
36-
run: python -m build --outdir dist --version $RELEASE_VERSION
37+
RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
38+
run: python -m build
3739
- name: Publish package
3840
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
3941
with:

0 commit comments

Comments
 (0)