File tree Expand file tree Collapse file tree 1 file changed +9
-17
lines changed
Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,15 @@ name: Release
33on :
44 push :
55 tags :
6- - " v*"
6+ - " v*" # Runs only when a version tag (e.g., v1.0.0) is pushed.
77
88jobs :
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 :
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 :
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
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
You can’t perform that action at this time.
0 commit comments