File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments