Skip to content

Commit

Permalink
Update python-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nothans committed Oct 31, 2024
1 parent 56745fc commit a618f55
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a618f55

Please sign in to comment.