File tree Expand file tree Collapse file tree 1 file changed +8
-21
lines changed Expand file tree Collapse file tree 1 file changed +8
-21
lines changed Original file line number Diff line number Diff line change 9
9
10
10
upload :
11
11
runs-on : ubuntu-latest
12
+ permissions :
13
+ id-token : write
12
14
13
15
steps :
14
16
- uses : actions/checkout@v3
15
17
16
- - name : Install libmemcached-dev
17
- run : |
18
- sudo apt-get update
19
- sudo apt-get install libmemcached-dev
20
-
21
18
- name : Set up Python
22
19
uses : actions/setup-python@v4
23
20
with :
24
21
python-version : ' 3.11'
25
22
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
33
25
34
- - name : Create wheel dist
35
- run : python setup.py bdist_wheel
26
+ - name : Create build
27
+ run : python -m build
36
28
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
You can’t perform that action at this time.
0 commit comments