Skip to content

Commit e8c78d2

Browse files
committed
ci: test github release (4)
1 parent 083ca19 commit e8c78d2

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

.github/actions/release-github/action.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,12 @@ runs:
3333
ls -l pybuild-work/dist/version || true
3434
ls -l pybuild-work/dist/*.tar.gz || true
3535
36-
- name: tag check not dev
37-
if: github.ref_type == 'tag' && (! contains(github.ref_name, '.dev'))
38-
shell: bash
39-
env:
40-
TAG: ${{ github.ref_name }}
41-
run: |
42-
echo "tag is \"${TAG}\""
43-
44-
45-
#- name: GitHub Release
46-
# if: github.ref_type == 'tag' && github.ref_name ...
47-
# uses: softprops/action-gh-release@v2
48-
# with:
49-
# files: |
50-
# pybuild-work/dist/*.whl
51-
# pybuild-work/dist/version
52-
# pybuild-work/dist/*.tar.gz
36+
- name: GitHub Release
37+
# only run if this is a tag event, the tag starts with 'v', and does not include '.dev'
38+
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v') && (! contains(github.ref_name, '.dev'))
39+
uses: softprops/action-gh-release@v2
40+
with:
41+
files: |
42+
pybuild-work/dist/*.whl
43+
pybuild-work/dist/version
44+
pybuild-work/dist/*.tar.gz

0 commit comments

Comments
 (0)