Skip to content

Commit 2688fed

Browse files
authored
Update release-pypi.yml
1 parent 6785fd2 commit 2688fed

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.github/workflows/.github/workflows/release-pypi.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,11 @@ jobs:
3535
- name: Checkout code
3636
uses: actions/checkout@v3
3737

38-
- name: Build and publish to Test PyPI
39-
if: ${{ (github.ref != 'refs/heads/main') && (github.event.label.name == 'release') }}
40-
env:
41-
TWINE_USERNAME: __token__
42-
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
43-
run: |
44-
make dist
45-
ls dist/
46-
tar tvf dist/dlclibrary-*.tar.gz
47-
python3 -m twine upload --repository testpypi dist/*
48-
4938
- name: Build and publish to PyPI
5039
if: ${{ github.event_name == 'push' }}
5140
env:
5241
TWINE_USERNAME: __token__
53-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
42+
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
5443
run: |
5544
make dist
5645
ls dist/

0 commit comments

Comments
 (0)