File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -76,14 +76,13 @@ jobs:
76
76
inputs : >-
77
77
./dist/*.tar.gz
78
78
./dist/*.whl
79
- - name : Create GitHub Release
79
+ - name : Ensure GitHub Release exists (no-op if already exists)
80
80
env :
81
81
GITHUB_TOKEN : ${{ github.token }}
82
- run : >-
83
- gh release create
84
- '${{ github.ref_name }}'
85
- --repo '${{ github.repository }}'
86
- --notes ""
82
+ run : |
83
+ # If a release for this tag already exists (e.g., created via GH UI), skip creation.
84
+ gh release view '${{ github.ref_name }}' --repo '${{ github.repository }}' >/dev/null 2>&1 || \
85
+ gh release create '${{ github.ref_name }}' --repo '${{ github.repository }}' --notes ""
87
86
- name : Upload artifact signatures to GitHub Release
88
87
env :
89
88
GITHUB_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change 1
1
[ ![ PyPI version] ( https://badge.fury.io/py/sbi.svg )] ( https://badge.fury.io/py/sbi )
2
2
[ ![ Conda Version] ( https://img.shields.io/conda/vn/conda-forge/sbi.svg )] ( https://github.com/conda-forge/sbi-feedstock )
3
3
[ ![ Contributions welcome] ( https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat )] ( https://sbi.readthedocs.io/en/latest/contributing.html )
4
- [ ![ Tests] ( https://github.com/sbi-dev/sbi/actions/workflows/ci .yml/badge.svg )] ( https://github.com/sbi-dev/sbi/actions )
4
+ [ ![ Tests] ( https://github.com/sbi-dev/sbi/actions/workflows/cd .yml/badge.svg )] ( https://github.com/sbi-dev/sbi/actions )
5
5
[ ![ codecov] ( https://codecov.io/gh/sbi-dev/sbi/branch/main/graph/badge.svg )] ( https://codecov.io/gh/sbi-dev/sbi )
6
6
[ ![ GitHub license] ( https://img.shields.io/github/license/sbi-dev/sbi )] ( https://github.com/sbi-dev/sbi/blob/master/LICENSE.txt )
7
7
[ ![ DOI] ( https://joss.theoj.org/papers/10.21105/joss.07754/status.svg )] ( https://doi.org/10.21105/joss.07754 )
You can’t perform that action at this time.
0 commit comments