Skip to content

Commit 742a001

Browse files
committed
fix: update download-artifact action to v7 and enhance release verification
1 parent be90f84 commit 742a001

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- name: Verify release is from master branch
8181
run: |
8282
TARGET="${{ github.event.release.target_commitish }}"
83-
# If target_commitish is a branch name, check it's master
83+
# If target_commitish is a branch name (local or remote), check it's master
8484
if git rev-parse --verify "refs/heads/$TARGET" >/dev/null 2>&1 || \
8585
git rev-parse --verify "refs/remotes/origin/$TARGET" >/dev/null 2>&1; then
8686
# It's a branch name
@@ -96,12 +96,15 @@ jobs:
9696
fi
9797
fi
9898
99-
- uses: actions/download-artifact@v6
99+
- uses: actions/download-artifact@v7
100100
with:
101101
path: dist
102102
merge-multiple: true
103103

104104
- uses: pypa/gh-action-pypi-publish@v1.13.0
105+
with:
106+
user: __token__
107+
password: ${{ secrets.PYPI_API_TOKEN }}
105108

106109
upload_testpypi:
107110
if: ${{ github.event.release.prerelease }}
@@ -110,11 +113,13 @@ jobs:
110113
permissions:
111114
id-token: write
112115
steps:
113-
- uses: actions/download-artifact@v6
116+
- uses: actions/download-artifact@v7
114117
with:
115118
path: dist
116119
merge-multiple: true
117120

118121
- uses: pypa/gh-action-pypi-publish@v1.13.0
119122
with:
120123
repository-url: https://test.pypi.org/legacy/
124+
user: __token__
125+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)