Skip to content

Commit 23d10dc

Browse files
committed
Update release.yml to use pypa/gh-action-pypi-publish
1 parent 63a5f60 commit 23d10dc

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,22 @@ jobs:
99

1010
upload:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
1214

1315
steps:
1416
- uses: actions/checkout@v3
1517

16-
- name: Install libmemcached-dev
17-
run: |
18-
sudo apt-get update
19-
sudo apt-get install libmemcached-dev
20-
2118
- name: Set up Python
2219
uses: actions/setup-python@v4
2320
with:
2421
python-version: '3.11'
2522

26-
- name: Install dependencies
27-
run: |
28-
pip install --upgrade pip
29-
pip install -r requirements-dev.txt
30-
31-
- name: Create source dist
32-
run: python setup.py sdist
23+
- name: Install build
24+
run: pip install build
3325

34-
- name: Create wheel dist
35-
run: python setup.py bdist_wheel
26+
- name: Create build
27+
run: python -m build
3628

37-
- name: Upload with twine
38-
env:
39-
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
40-
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
41-
run: |
42-
ls -l dist/*
43-
twine upload dist/*
29+
- name: Publish package distributions to PyPI
30+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)