Skip to content

Commit

Permalink
Try fix pyproject.toml deploy (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
prisae authored Oct 18, 2024
1 parent b995f35 commit 79a0ac0
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/python_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,30 +80,25 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel numpy
python -m pip install build setuptools-scm
- name: Create package
run: |
cd packages
python create_python.py
echo ""
echo "Version:"
echo python python/setup.py --version
- name: Build source and wheel distributions
run: |
# Build source and wheel packages
cd packages/python
python setup.py sdist
python setup.py bdist_wheel
python -m build
echo ""
echo "Generated files:"
ls -lh dist/
- name: Publish to Test PyPI
if: success()
# [pin v1.4.2 (2021-02-08)]
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_PASSWORD }}
Expand All @@ -116,8 +111,7 @@ jobs:
- name: Publish to PyPI
# Only for releases
if: success() && github.event_name == 'release'
# [pin v1.4.2 (2021-02-08)]
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
Expand Down

0 comments on commit 79a0ac0

Please sign in to comment.