Skip to content

Commit 67a257a

Browse files
authored
Update publish.yml
1 parent b0e78bc commit 67a257a

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,29 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
# Checkout the repository
15-
- name: Check out code
16-
uses: actions/checkout@v3
14+
# Check out the repository
15+
- name: Check out code
16+
uses: actions/checkout@v3
1717

18-
# Set up Python
19-
- name: Set up Python
20-
uses: actions/setup-python@v4
21-
with:
22-
python-version: '3.x'
18+
# Set up Python
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.x'
2323

24-
# Install dependencies
25-
- name: Install dependencies
26-
run: |
27-
python -m pip install --upgrade pip
28-
pip install setuptools wheel twine
24+
# Install dependencies
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install build twine
2929
30-
# Build the package
31-
- name: Build the package
32-
run: |
33-
python setup.py sdist bdist_wheel
30+
# Build the package
31+
- name: Build the package
32+
run: |
33+
python -m build
3434
35-
# Publish to PyPI
36-
- name: Publish to PyPI
37-
uses: pypa/gh-action-pypi-publish@v1
38-
with:
39-
user: ${{ secrets.PYPI_USERNAME }}
40-
password: ${{ secrets.PYPI_PASSWORD }}
35+
# Publish to PyPI
36+
- name: Publish to PyPI
37+
uses: pypa/gh-action-publish-pypi@release/v1
38+
with:
39+
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)