Compare commits

..
Author SHA1 Message Date
Mikaël Capelle c5ee7f8a43 Pypi-publish on tag. 2022-04-22 13:17:01 +02:00
2 changed files with 4 additions and 4257 deletions
+4 -3
View File
@@ -4,8 +4,8 @@
name: Upload Python Package
on:
release:
types: [published]
push:
tags: ["*.dev[0-9]+"]
jobs:
deploy:
@@ -18,7 +18,7 @@ jobs:
uses: frabert/replace-string-action@v1.1
id: version
with:
string: ${{ github.event.release.tag_name }}
string: ${{ github.ref_name }}
pattern: "v?([0-9][.][0-9][.][0-9]).*"
replace-with: "$1"
- name: Set up Python
@@ -36,5 +36,6 @@ jobs:
run: |
cd stubs/setup
cp ../${{ steps.version.outputs.replaced }}/mobase.pyi mobase-stubs/__init__.pyi
sed -i 's/__version__ = ".*"/__version__ = "${{ github.ref_name }}"/' mobase-stubs/__init__.pyi
python setup.py sdist bdist_wheel
twine upload dist/*
File diff suppressed because it is too large Load Diff