Skip to content

Commit

Permalink
ci: improve publish ci to use env vars (#1652)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhanunjaya-Elluri authored Dec 27, 2024
1 parent ecde246 commit 8749e72
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -86,8 +88,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create
'${{ github.ref_name }}'
--repo '${{ github.repository }}'
"$GITHUB_REF_NAME"
--repo "$GITHUB_REPOSITORY"
--notes ""
- name: Upload artifact signatures to GitHub Release
env:
Expand All @@ -97,5 +99,5 @@ jobs:
# sigstore-produced signatures and certificates.
run: >-
gh release upload
'${{ github.ref_name }}' dist/**
--repo '${{ github.repository }}'
"$GITHUB_REF_NAME" dist/**
--repo "$GITHUB_REPOSITORY"

0 comments on commit 8749e72

Please sign in to comment.