Skip to content

Commit 2fe2454

Browse files
authored
Merge pull request #10 from oboril/oboril-patch-1
Trying to fix PyPi publishing
2 parents 21b55ed + 77179b2 commit 2fe2454

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/publish_to_pypi.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,15 @@ jobs:
7474
inputs: >-
7575
./dist/*.tar.gz
7676
./dist/*.whl
77-
- name: Create GitHub Release
77+
- name: Create or Update GitHub Release
7878
env:
7979
GITHUB_TOKEN: ${{ github.token }}
8080
run: >-
81-
gh release create
82-
'${{ github.ref_name }}'
83-
--repo '${{ github.repository }}'
84-
--notes ""
81+
if gh release view '${{ github.ref_name }}' --repo '${{ github.repository }}' > /dev/null 2>&1; then
82+
gh release edit '${{ github.ref_name }}' --repo '${{ github.repository }}' --notes ""
83+
else
84+
gh release create '${{ github.ref_name }}' --repo '${{ github.repository }}' --notes ""
85+
fi
8586
- name: Upload artifact signatures to GitHub Release
8687
env:
8788
GITHUB_TOKEN: ${{ github.token }}

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "mocca2"
7-
version = "0.1.13"
7+
version = "0.1.17"
88
authors = [
99
{ name="Jan Oboril", email="[email protected]" },
1010
]

0 commit comments

Comments
 (0)