Skip to content

Commit

Permalink
Merge pull request #381 from melexis/prep-11.3.1
Browse files Browse the repository at this point in the history
Fix: Use GIT tag as package version during deployment in CI
  • Loading branch information
Letme authored Jul 4, 2024
2 parents 89853c2 + 7f2abb3 commit 0b16f07
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: tox -e check
- name: Upload HTML documentation
if: matrix.python-version == 3.9
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: html-doc
path: doc/_build/html
Expand All @@ -58,7 +58,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Download HTML documentation from job 'test'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: html-doc
path: doc/_build/html
Expand All @@ -72,15 +72,14 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
python -m pip install --upgrade build twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*

0 comments on commit 0b16f07

Please sign in to comment.