Skip to content

Commit ce86c69

Browse files
committed
Use environment variables for GitHub Actions publishing
1 parent ee8a74f commit ce86c69

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,23 @@ jobs:
7070
name: python-package-distributions
7171
path: dist/
7272
- name: Sign packages
73-
uses: sigstore/gh-action-sigstore-python@v2.1.1
73+
uses: sigstore/gh-action-sigstore-python@v3.0.0
7474
with:
7575
inputs: >-
7676
./dist/*.tar.gz
7777
./dist/*.whl
7878
- name: Create GitHub Release
7979
env:
80-
GITHUB_TOKEN: ${{ github.token }}
80+
GH_TOKEN: ${{ github.token }}
8181
run: >-
8282
gh release create
83-
'${{ github.ref_name }}'
84-
--repo '${{ github.repository }}'
85-
--title '${{ github.event.repository.name }} ${{ github.ref_name }}'
83+
"$GITHUB_REF_NAME"
84+
--repo "$GITHUB_REPOSITORY"
85+
--title "${GITHUB_REPOSITORY#*/} $GITHUB_REF_NAME"
8686
- name: Upload artifact signatures to GitHub Release
8787
env:
88-
GITHUB_TOKEN: ${{ github.token }}
88+
GH_TOKEN: ${{ github.token }}
8989
run: >-
9090
gh release upload
91-
'${{ github.ref_name }}' dist/**
92-
--repo '${{ github.repository }}'
91+
"$GITHUB_REF_NAME" dist/**
92+
--repo "$GITHUB_REPOSITORY"

0 commit comments

Comments
 (0)