Skip to content

Commit 85ddfae

Browse files
committed
Update publish_to_pypi.yml
1 parent 6bc8dee commit 85ddfae

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

.github/workflows/publish_to_pypi.yml

+16-22
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,20 @@ on:
77
jobs:
88
deploy:
99
runs-on: windows-latest
10-
1110
steps:
12-
- name: Checkout code
13-
uses: actions/checkout@v3
14-
15-
- name: Set up Python
16-
uses: actions/setup-python@v3
17-
with:
18-
python-version: '3.11'
19-
20-
- name: Install dependencies
21-
run: |
22-
python -m pip install --upgrade pip
23-
pip install build
24-
25-
- name: Build package
26-
run: python -m build
27-
28-
- name: Publish package to PyPI
29-
uses: pypa/gh-action-pypi-publish@v1
30-
with:
31-
user: __token__
32-
password: ${{ secrets.PYPI_API_TOKEN }}
11+
- uses: actions/checkout@v3
12+
- name: Set up Python
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: '3.11'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install build twine
20+
- name: Build package
21+
run: python -m build
22+
- name: Publish package
23+
env:
24+
TWINE_USERNAME: __token__
25+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
26+
run: twine upload dist/*

0 commit comments

Comments
 (0)