We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56745fc commit a618f55Copy full SHA for a618f55
1 file changed
.github/workflows/python-publish.yml
@@ -26,14 +26,16 @@ jobs:
26
uses: actions/setup-python@v3
27
with:
28
python-version: '3.x'
29
+ - name: Set version
30
+ run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
31
- name: Install dependencies
32
run: |
33
python -m pip install --upgrade pip
34
pip install build
35
- name: Build package
36
env:
- RELEASE_VERSION: ${{ github.event.release.tag_name }}
- run: python -m build --outdir dist --version $RELEASE_VERSION
37
+ RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
38
+ run: python -m build
39
- name: Publish package
40
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
41
0 commit comments