File tree Expand file tree Collapse file tree 1 file changed +21
-14
lines changed Expand file tree Collapse file tree 1 file changed +21
-14
lines changed Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
deploy :
12
-
12
+ name : Upload release to PyPI
13
13
runs-on : ubuntu-latest
14
-
14
+
15
+ environment :
16
+ name : pypi
17
+ url : https://pypi.org/p/urdf2webots
18
+ permissions :
19
+ id-token : write
15
20
steps :
16
- - uses : actions/checkout@v2
21
+ - name : Checkout repository
22
+ uses : actions/checkout@v3
23
+
17
24
- name : Set up Python
18
- uses : actions/setup-python@v2
25
+ uses : actions/setup-python@v4
19
26
with :
20
- python-version : ' 3.8'
21
- - name : Install dependencies
27
+ python-version : ' 3.10'
28
+
29
+ - name : Install build tools
22
30
run : |
23
31
python -m pip install --upgrade pip
24
- pip install setuptools wheel twine
25
- - name : Build and publish
26
- env :
27
- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
28
- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
29
- run : |
30
- python setup.py sdist bdist_wheel
31
- twine upload dist/*
32
+ pip install build
33
+
34
+ - name : Build package
35
+ run : python -m build
36
+
37
+ - name : Publish package distributions to PyPI
38
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments