Skip to content

Commit 04c8dc2

Browse files
Change order of operations
1 parent 4ff2617 commit 04c8dc2

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,6 @@ jobs:
4040
- name: upgrade version with hatch
4141
run: hatch version ${{ env.VERSION }}
4242

43-
- name: build binary wheel and source tarball
44-
env:
45-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
46-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
47-
run: |
48-
python -m build
49-
50-
- name: publish to TestPyPI
51-
env:
52-
TWINE_USERNAME: ${{ secrets.TESTPYPI_USERNAME }}
53-
TWINE_PASSWORD: ${{ secrets.TESTPYPI_PASSWORD }}
54-
run: twine upload --repository testpypi dist/*
55-
56-
- name: publish to PyPI
57-
env:
58-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
59-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
60-
run: twine upload dist/*
61-
6243
- name: configure git with the bot credentials
6344
env:
6445
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
@@ -70,7 +51,6 @@ jobs:
7051
7152
git config --global user.name "nextmv-bot"
7253
git config --global user.email "tech+gh-nextmv-bot@nextmv.io"
73-
git config --global url."git@github.com:".insteadOf "https://github.com/"
7454
7555
- name: commit new version
7656
run: |
@@ -91,3 +71,22 @@ jobs:
9171
--verify-tag \
9272
--generate-notes \
9373
--title $VERSION $PRERELEASE_FLAG
74+
75+
- name: build binary wheel and source tarball
76+
env:
77+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
78+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
79+
run: |
80+
python -m build
81+
82+
- name: publish to TestPyPI
83+
env:
84+
TWINE_USERNAME: ${{ secrets.TESTPYPI_USERNAME }}
85+
TWINE_PASSWORD: ${{ secrets.TESTPYPI_PASSWORD }}
86+
run: twine upload --repository testpypi dist/*
87+
88+
- name: publish to PyPI
89+
env:
90+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
91+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
92+
run: twine upload dist/*

0 commit comments

Comments
 (0)