Skip to content

Commit 7434f42

Browse files
authored
Refactor release workflow for PyPI publishing
Removed Test PyPI publishing step and updated PyPI credentials.
1 parent 88084e8 commit 7434f42

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

.github/workflows/release-pypi.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,13 @@ jobs:
3636
- name: Checkout code
3737
uses: actions/checkout@v3
3838

39-
- name: Build and publish to Test PyPI
40-
if: ${{ (github.ref != 'refs/heads/main') && (github.event.label.name == 'release') }}
41-
env:
42-
TWINE_USERNAME: __token__
43-
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
44-
run: |
45-
make dist
46-
ls dist/
47-
tar tvf dist/fmpose3d-*.tar.gz
48-
python3 -m twine upload --verbose --repository testpypi dist/*
49-
5039
- name: Build and publish to PyPI
5140
if: ${{ github.event_name == 'push' }}
5241
env:
5342
TWINE_USERNAME: __token__
54-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
43+
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
5544
run: |
56-
make dist
45+
pip install build twine
46+
python3 -m build
5747
ls dist/
58-
tar tvf dist/fmpose3d-*.tar.gz
5948
python3 -m twine upload --verbose dist/*

0 commit comments

Comments
 (0)