Skip to content

Commit

Permalink
Update FEZrs_PyPI_Publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aradfarahani authored Mar 1, 2025
1 parent 80f4513 commit a072ced
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/FEZrs_PyPI_Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ jobs:
git tag $NEW_VERSION # Create a new tag with the new version
- name: Commit & Push the New Version
env:
GH_PAT: ${{ secrets.GH_PAT }} # The Personal Access Token
run: |
# Use token to authenticate and push the version bump
git remote set-url origin https://x-access-token:$GH_PAT@github.com/${{ github.repository }}.git
git push origin main --tags # Push commits and tags
env:
GH_PAT: ${{ secrets.GH_PAT }} # The Personal Access Token
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions@users.noreply.github.com"
git remote set-url origin https://x-access-token:${{ secrets.GH_PAT }}@github.com/${{ github.repository }}.git
git push origin main --tags

- name: Build and Publish to PyPI
env:
TWINE_USERNAME: __token__
Expand Down

0 comments on commit a072ced

Please sign in to comment.