Skip to content

Commit c9aad03

Browse files
REMOVE twine
1 parent d65c5f5 commit c9aad03

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ name: Release
33
on:
44
push:
55
tags:
6-
- "v*"
6+
- "v*" # Runs only when a version tag (e.g., v1.0.0) is pushed.
77

88
jobs:
9-
Release:
9+
create_release:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
- name: Create Release
13+
14+
- name: Create GitHub Release
1415
id: create_release
1516
uses: actions/create-release@v1
1617
env:
@@ -48,7 +49,7 @@ jobs:
4849

4950
- uses: actions/upload-artifact@v4
5051
with:
51-
name: wheels-${{ matrix.platform }}-${{ matrix.arch }}
52+
name: wheels-${{ matrix.platform }}
5253
path: wheelhouse/*.whl
5354

5455
build_sdist:
@@ -74,7 +75,7 @@ jobs:
7475
name: pypi
7576
url: https://pypi.org/project/compas_cgal
7677
permissions:
77-
id-token: write
78+
id-token: write # Required for PyPI trusted publishing
7879

7980
steps:
8081
- uses: actions/download-artifact@v4
@@ -88,17 +89,8 @@ jobs:
8889
name: sdist
8990
path: dist
9091

91-
- name: Install Twine
92-
run: pip install twine
9392
- name: List files before upload
94-
run: |
95-
if [[ "$RUNNER_OS" == "Windows" ]]; then
96-
pwsh -Command "Get-ChildItem -Path . -Recurse -Force"
97-
else
98-
ls -lhR
99-
fi
93+
run: ls -lhR dist
94+
10095
- name: Publish to PyPI
101-
run: python -m twine upload dist/*
102-
env:
103-
TWINE_USERNAME: __token__
104-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
96+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)