File tree Expand file tree Collapse file tree 2 files changed +32
-2
lines changed
Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,41 @@ jobs:
3838 branch : main
3939 path : .
4040
41+ - name : Extract version
42+ id : version
43+ run : |
44+ TAG=${{ github.ref }}
45+ VERSION=${TAG#v}
46+ echo "::set-output name=version::$VERSION"
47+
4148 - name : Move files to dist
4249 run : |
4350 mkdir dist
4451 mv sdist/* dist/
45-
52+ if [[ ! -f dist/multi_mst-${{ steps.version.outputs.version }}.tar.gz ]] ; then exit 1; fi
53+
54+ - name : Make github release
55+ id : make_release
56+ uses : actions/create-release@v1
57+ env :
58+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59+ with :
60+ draft : false
61+ prerelease : false
62+ release_name : " Version ${{ steps.version.outputs.version }}"
63+ tag_name : ${{ github.ref }}
64+ body : " **Full Changelog**: https://github.com/vda-lab/multi_mst/commits/${{ github.ref }}"
65+
66+ - name : Upload source distribution
67+ uses : actions/upload-release-asset@v1
68+ env :
69+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70+ with :
71+ upload_url : ${{ steps.make_release.outputs.upload_url }}
72+ asset_path : dist/*
73+ asset_name : multi_mst-${{ steps.version.outputs.version }}.tar.gz
74+ asset_content_type : application/gzip
75+
4676 - name : Publish package to (Test)PyPI
47774878 # Comment lines below to publish to PyPi instead of test PyPi
Original file line number Diff line number Diff line change 11[metadata]
22name = multi_mst
3- version = 0.1.0
3+ version = 0.1.1
44author = Jelmer Bot
5566maintainer = Jelmer Bot
You can’t perform that action at this time.
0 commit comments