Skip to content

Commit

Permalink
Change order of operations
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-quintero committed Jan 2, 2024
1 parent 4ff2617 commit 04c8dc2
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,6 @@ jobs:
- name: upgrade version with hatch
run: hatch version ${{ env.VERSION }}

- name: build binary wheel and source tarball
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build

- name: publish to TestPyPI
env:
TWINE_USERNAME: ${{ secrets.TESTPYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TESTPYPI_PASSWORD }}
run: twine upload --repository testpypi dist/*

- name: publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload dist/*

- name: configure git with the bot credentials
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
Expand All @@ -70,7 +51,6 @@ jobs:

git config --global user.name "nextmv-bot"
git config --global user.email "[email protected]"
git config --global url."[email protected]:".insteadOf "https://github.com/"

- name: commit new version
run: |
Expand All @@ -91,3 +71,22 @@ jobs:
--verify-tag \
--generate-notes \
--title $VERSION $PRERELEASE_FLAG

- name: build binary wheel and source tarball
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build

- name: publish to TestPyPI
env:
TWINE_USERNAME: ${{ secrets.TESTPYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TESTPYPI_PASSWORD }}
run: twine upload --repository testpypi dist/*

- name: publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload dist/*

0 comments on commit 04c8dc2

Please sign in to comment.