Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Fehlner <[email protected]>
  • Loading branch information
andife committed Aug 27, 2024
1 parent b7b0f53 commit 7ca326e
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,7 @@ jobs:
runs-on: ubuntu-latest
needs: [prepare-release]
if: (needs.prepare-release.result == 'success') && startsWith(github.base_ref, 'rel-') # TODO only if a release is requested

environment:
name: releasepypi
url: https://pypi.org/p/onnx


steps:

- uses: actions/download-artifact@v4
Expand All @@ -152,11 +148,24 @@ jobs:
path: dist
merge-multiple: true

- name: Publish distribution to TestPyPI
if: contains(github.ref,'rc')
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
environment:
name: testpypi
url: https://test.pypi.org/p/onnx

- name: Publish distribution to PyPI
if: !contains(github.ref,'rc')
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://pypi.org/legacy/

environment:
name: releasepypi
url: https://pypi.org/p/onnx


# The Release is created by the Github GUI, we only add the files here
- name: Upload artifact signatures to GitHub Release
Expand Down

0 comments on commit 7ca326e

Please sign in to comment.