Skip to content

Commit ea963b4

Browse files
authored
Update publish-release.yml (#11)
1 parent c642916 commit ea963b4

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Upload Python Package
22

33
on:
4-
release:
5-
types: [published]
6-
workflow_dispatch:
4+
push:
5+
tags:
6+
- "[0-9][0-9].[0-9][0-9]*"
77

88
env:
99
MLM_LICENSE_TOKEN: ${{ secrets.MATLAB_BATCH_TOKEN }}
@@ -141,7 +141,12 @@ jobs:
141141
echo pyproject.toml
142142
143143
- name: Build package
144-
run: python -m build
144+
run: python -m build --sdist --wheel
145+
146+
- name: Release package
147+
uses: softprops/action-gh-release@v2
148+
with:
149+
files: ./dist/spm_python*.whl
145150

146151
- name: Publish package
147152
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29

0 commit comments

Comments
 (0)