Skip to content

Commit c9c5ed1

Browse files
committed
workflow upload code change
1 parent 4bf23f2 commit c9c5ed1

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/release_package.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,17 @@ jobs:
5151
pip install build twine
5252
5353
- name: Build package
54-
run: python -m build
54+
run: |
55+
rm -rf dist/ build/ *.egg-info
56+
python -m build
5557
5658
- name: Upload to TestPyPI
57-
run: ./scripts/upload_testpypi.sh
59+
run: |
60+
twine upload \
61+
--repository-url https://test.pypi.org/legacy/ \
62+
-u __token__ \
63+
-p "$TEST_PYPI_API_TOKEN" \
64+
dist/*
5865
env:
5966
TEST_PYPI_API_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
6067

@@ -65,6 +72,10 @@ jobs:
6572
python -c "import pytest_htmlx; print(pytest_htmlx.__version__)"
6673
6774
- name: Publish to PyPI
68-
run: ./scripts/upload_pypi.sh
75+
run: |
76+
twine upload \
77+
-u __token__ \
78+
-p "$PYPI_API_TOKEN" \
79+
dist/*
6980
env:
7081
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)