File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7171 with :
7272 password : ${{ secrets.PYPI_API_TOKEN }}
7373
74- - name : Create Git tag
75- if : env.CREATE_TAG == 'True'
76- env :
77- VERSION : ${{ env.VERSION }}
78- GH_PAT : ${{ secrets.GH_PAT }} # Use PAT secret
79- run : |
80- TAG="v$VERSION"
81- echo "Creating Git tag $TAG using PAT"
82- git config user.name "github-actions"
83- git config user.email "actions@github.com"
84- # use PAT for pushing
85- git remote set-url origin https://x-access-token:${GH_PAT}@github.com/${{ github.repository }}.git
86- git tag -a "$TAG" -m "Release $TAG"
87- git push origin "$TAG"
88-
89- - name : Create GitHub Release
90- if : env.CREATE_TAG == 'True'
91- uses : softprops/action-gh-release@v1
92- with :
93- tag_name : v${{ env.VERSION }}
94- name : Release v${{ env.VERSION }}
95- env :
96- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
74+
9775
98- - name : Upload distributions to GitHub Release
99- if : env.CREATE_TAG == 'True'
100- uses : softprops/action-gh-release@v1
101- with :
102- files : dist/* # upload all built binaries (.whl and .tar.gz)
103- env :
104- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
76+
Original file line number Diff line number Diff line change 1- UPLOAD_TO_PYPI = True
2- CREATE_TAG = True
1+ UPLOAD_TO_PYPI = False
2+ CREATE_TAG = False
You can’t perform that action at this time.
0 commit comments