Skip to content

Commit 207119c

Browse files
authored
Merge pull request #1 from vda-lab/dev/v0.1.1
Add github release to publish workflow
2 parents 58baabe + 7b9c418 commit 207119c

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.github/workflows/Publish.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff 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
4777
uses: pypa/[email protected]
4878
# Comment lines below to publish to PyPi instead of test PyPi

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = multi_mst
3-
version = 0.1.0
3+
version = 0.1.1
44
author = Jelmer Bot
55
author_email = [email protected]
66
maintainer = Jelmer Bot

0 commit comments

Comments
 (0)