Skip to content

Commit a64f7f2

Browse files
committed
ci: deploy github release after uploading to pypi
So the wheels are verified for sanity and will fail out before the github release is created.
1 parent ecb4981 commit a64f7f2

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,6 @@ jobs:
7171
if-no-files-found: error
7272
retention-days: 1
7373

74-
- name: Create GitHub release
75-
uses: softprops/action-gh-release@v1
76-
if: ${{ runner.os == 'Linux' && matrix.arch == 'x86_64' && startsWith(github.ref, 'refs/tags/') }}
77-
with:
78-
files: pkgcraft-python/dist/*.tar.gz
79-
fail_on_unmatched_files: true
80-
8174
- name: Upload sdist to PyPI
8275
uses: pypa/gh-action-pypi-publish@release/v1
8376
if: ${{ runner.os == 'Linux' && matrix.arch == 'x86_64' && startsWith(github.ref, 'refs/tags/') }}
@@ -91,3 +84,10 @@ jobs:
9184
with:
9285
password: ${{ secrets.PYPI_API_TOKEN }}
9386
packages_dir: pkgcraft-python/wheels/
87+
88+
- name: Create GitHub release
89+
uses: softprops/action-gh-release@v1
90+
if: ${{ runner.os == 'Linux' && matrix.arch == 'x86_64' && startsWith(github.ref, 'refs/tags/') }}
91+
with:
92+
files: pkgcraft-python/dist/*.tar.gz
93+
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)