Skip to content

Commit 6546fa2

Browse files
committed
Update github action to fix building wheels for all supported Python versions.
1 parent e28aa7f commit 6546fa2

File tree

1 file changed

+6
-67
lines changed

1 file changed

+6
-67
lines changed

.github/workflows/build-python-wheels.yaml

Lines changed: 6 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
pull_request:
66
push:
77
branches:
8-
- master
98
- release*
109

1110
concurrency:
@@ -42,73 +41,13 @@ jobs:
4241
pip install
4342
build
4443
--user
44+
4545
- name: Build a binary wheel and a source tarball
4646
run: python3 -m build
47-
- name: Store the distribution packages
48-
uses: actions/upload-artifact@v4
49-
with:
50-
name: python-package-distributions
51-
path: dist/
52-
53-
# # https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
54-
# publish-to-pypi:
55-
# name: Publish GGNN package to PyPI
56-
# if: startsWith(github.ref, 'refs/tags/')
57-
# needs:
58-
# - build
59-
# runs-on: ubuntu-latest
60-
# environment:
61-
# name: pypi
62-
# url: https://pypi.org/p/pyGGNN
63-
# permissions:
64-
# id-token: write
65-
#
66-
# steps:
67-
# - name: Download all the dists
68-
# uses: actions/download-artifact@v4
69-
# with:
70-
# name: python-package-distributions
71-
# path: dist/
72-
# - name: Publish distribution package to PyPI
73-
# uses: pypa/gh-action-pypi-publish@release/v1
74-
75-
github-release:
76-
name: Sign the Python distribution package with Sigstore and upload them to GitHub Release
77-
needs:
78-
- build
79-
runs-on: ubuntu-latest
8047

81-
permissions:
82-
contents: write # IMPORTANT: mandatory for making GitHub Releases
83-
id-token: write # IMPORTANT: mandatory for sigstore
84-
85-
steps:
86-
- name: Download all the dists
87-
uses: actions/download-artifact@v4
88-
with:
89-
name: python-package-distributions
90-
path: dist/
91-
- name: Sign the dists with Sigstore
92-
uses: sigstore/[email protected]
48+
- name: Upload binaries to GitHub release
49+
uses: svenstaro/upload-release-action@v2
9350
with:
94-
inputs: >-
95-
./dist/*.tar.gz
96-
./dist/*.whl
97-
- name: Create GitHub Release
98-
env:
99-
GITHUB_TOKEN: ${{ github.token }}
100-
run: >-
101-
gh release create
102-
"$GITHUB_REF_NAME"
103-
--repo "$GITHUB_REPOSITORY"
104-
--notes ""
105-
- name: Upload artifact signatures to GitHub Release
106-
env:
107-
GITHUB_TOKEN: ${{ github.token }}
108-
# Upload to GitHub Release using the `gh` CLI.
109-
# `dist/` contains the built packages, and the
110-
# sigstore-produced signatures and certificates.
111-
run: >-
112-
gh release upload
113-
"$GITHUB_REF_NAME" dist/**
114-
--repo "$GITHUB_REPOSITORY"
51+
file: dist/ggnn-*-linux_x86_64.whl
52+
file_glob: true
53+
tag: ${{ github.ref }}

0 commit comments

Comments
 (0)