Skip to content

Commit c341c27

Browse files
committed
action up
1 parent 53dd964 commit c341c27

File tree

2 files changed

+6
-60
lines changed

2 files changed

+6
-60
lines changed

.github/workflows/pypi.yml

Lines changed: 5 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -9,77 +9,23 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111

12-
strategy:
13-
matrix:
14-
python-version: ["3.8", "3.9", "3.10", "3.11"]
15-
1612
steps:
1713
- name: Checkout code
1814
uses: actions/checkout@v4
1915

20-
- name: Set up Python ${{ matrix.python-version }}
16+
- name: Set up Python 3.8
2117
uses: actions/setup-python@v5
2218
with:
23-
python-version: ${{ matrix.python-version }}
19+
python-version: 3.8
2420

2521
- name: Install dependencies
2622
run: |
2723
python -m pip install --upgrade pip
2824
python -m pip install setuptools wheel twine
2925
30-
- name: Build the package for Python ${{ matrix.python-version }}
26+
- name: Build the package for Python 3.8
3127
run: |
32-
python setup.py bdist_wheel
33-
34-
# Dynamically rename the .whl file using matrix.python-version
35-
for file in dist/*.whl; do
36-
new_name=$(echo "$file" | sed -E "s/-py[0-9]+.*$/-py${{ matrix.python-version }}-none-any.whl/")
37-
mv "$file" "$new_name"
38-
done
39-
# Export the new name to GITHUB_ENV
40-
# Set the new name to GITHUB_ENV without the "dist/" directory
41-
new_name_base=$(basename "$new_name") # Get the base name without 'dist/'
42-
echo "new_name=$new_name_base" >> $GITHUB_ENV
43-
working-directory: ./icub_pybullet
44-
45-
- name: Upload built packages as artifacts
46-
uses: actions/upload-artifact@v4
47-
with:
48-
name: ${{ env.new_name }}
49-
path: ./icub_pybullet/dist/*
50-
51-
publish:
52-
runs-on: ubuntu-latest
53-
needs: build
54-
55-
steps:
56-
- name: Checkout code
57-
uses: actions/checkout@v4
58-
59-
- name: Download all built packages
60-
uses: actions/download-artifact@v4
61-
with:
62-
path: ./icub_pybullet/dist
63-
merge-multiple: true
64-
65-
- name: Set up Python
66-
uses: actions/setup-python@v5
67-
with:
68-
python-version: "3.11"
69-
70-
- name: Install dependencies
71-
run: |
72-
python -m pip install --upgrade pip
73-
python -m pip install setuptools wheel twine
74-
75-
- name: Build package
76-
run: python setup.py sdist
77-
working-directory: ./icub_pybullet
78-
79-
- name: List files in dist directory
80-
run: |
81-
echo "Listing files in the dist directory:"
82-
ls -la dist/
28+
python setup.py bdist_wheel sdist
8329
working-directory: ./icub_pybullet
8430

8531
- name: Publish to PyPI
@@ -88,4 +34,4 @@ jobs:
8834
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
8935
run: |
9036
python -m twine upload dist/*
91-
working-directory: ./icub_pybullet
37+
working-directory: ./icub_pybullet

icub_pybullet/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
setup(
3030
name=app_name,
31-
version="1.1.1",
31+
version="1.1.2",
3232
description="pyCub - iCub in PyBullet",
3333
package_dir={"icub_pybullet": "."},
3434
package_data={app_name: ["iCub/**/**", "other_meshes/**/**", "configs/**/**", "logs/**/**"]},

0 commit comments

Comments
 (0)