|
5 | 5 | pull_request: |
6 | 6 | push: |
7 | 7 | branches: |
8 | | - - master |
9 | 8 | - release* |
10 | 9 |
|
11 | 10 | concurrency: |
@@ -42,73 +41,13 @@ jobs: |
42 | 41 | pip install |
43 | 42 | build |
44 | 43 | --user |
| 44 | +
|
45 | 45 | - name: Build a binary wheel and a source tarball |
46 | 46 | 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 |
80 | 47 |
|
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 | | - |
| 48 | + - name: Upload binaries to GitHub release |
| 49 | + uses: svenstaro/upload-release-action@v2 |
93 | 50 | 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