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 Jul 20, 2024
1 parent c77c180 commit a8bdf05
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ jobs:
merge-multiple: true

- name: Publish distribution to PyPI
if: github.repository_owner == 'onnx'
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
Expand Down Expand Up @@ -199,8 +200,7 @@ jobs:

permissions:
contents: write # IMPORTANT: mandatory for making GitHub Releases
id-token: write # IMPORTANT: mandatory for sigstore

id-token: write # IMPORTANT: mandatory for sigstore

steps:

Expand All @@ -211,7 +211,7 @@ jobs:
merge-multiple: true

- name: Publish distribution to PyPI
if: github.repository_owner == 'onnx'
if: (github.repository_owner == 'onnx')
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
Expand All @@ -227,7 +227,7 @@ jobs:

# The Release is created by the Github GUI, we only add the files here
- name: Upload artifact signatures to GitHub Release
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes # TODO check exact variants
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes # TODO check exact variants
env:
GITHUB_TOKEN: ${{ github.token }}
# Upload to GitHub Release using the `gh` CLI.
Expand All @@ -237,8 +237,7 @@ jobs:
gh release upload
'${{ github.ref_name }}' /home/runner/work/onnx/onnx/dist/**.sigstore.json
--repo '${{ github.repository }}'


0 comments on commit a8bdf05

Please sign in to comment.