Skip to content

Commit

Permalink
Fix publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
bindreams committed Apr 28, 2024
1 parent 3b84361 commit 707555d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# See also:
# https://github.com/pypa/gh-action-pypi-publish
# https://docs.pypi.org/trusted-publishers/creating-a-project-through-oidc/
name: Publish

on:
Expand All @@ -14,8 +17,10 @@ on:

jobs:
publish:
name: Publish to ${{ options.repository }}
name: Publish to ${{ inputs.repository }}
runs-on: ubuntu-latest
environment:
name: publish-${{ inputs.repository }}
permissions:
id-token: write
steps:
Expand All @@ -36,5 +41,3 @@ jobs:
echo "UPLOAD_URL=$URL" >> "$GITHUB_ENV"
- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: $UPLOAD_URL

0 comments on commit 707555d

Please sign in to comment.