Skip to content

Commit 84f04b4

Browse files
committed
fix GH action
1 parent c421b3d commit 84f04b4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
name: release
22

3-
on: push
3+
on:
4+
release:
5+
types: [published]
46

57
jobs:
68
publish-pypi:
79
runs-on: ubuntu-latest
810
steps:
911
- uses: actions/checkout@master
1012
- name: Set up Python 3.8
11-
uses: actions/setup-python@v2.2.2
13+
uses: actions/setup-python@v4.7.0
1214
with:
1315
python-version: 3.8
1416
- name: Install dependencies
1517
run: pip install -qU setuptools wheel twine
1618
- name: Generating distribution archives
1719
run: python setup.py sdist bdist_wheel
1820
- name: Publish distribution 📦 to PyPI
19-
if: startsWith(github.event.ref, 'refs/tags')
2021
uses: pypa/gh-action-pypi-publish@master
2122
with:
2223
user: ${{ secrets.PYPI_USERNAME }}

mongoengine_plus/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.1.1.dev0'
1+
__version__ = '0.1.1.dev1'

0 commit comments

Comments
 (0)