Skip to content

Commit 71b8ed7

Browse files
committed
Update release.yml
1 parent a72f7b6 commit 71b8ed7

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Release
22
on:
3-
push:
4-
branches:
5-
- release-workflow-refactor
6-
workflow_dispatch: { }
3+
release:
4+
types: [published]
75

86
jobs:
97
publish:
@@ -20,11 +18,16 @@ jobs:
2018
run: pip install twine
2119
- name: Build package
2220
run: python setup.py sdist
23-
# - name: Publish package to PyPI
24-
# uses: pypa/gh-action-pypi-publish@v1.3.1
25-
# with:
26-
# user: __token__
27-
# password: ${{ secrets.pypi_password }}
21+
- name: Create Release
22+
id: create_release
23+
uses: actions/create-release@v1
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
- name: Publish package to PyPI
27+
uses: pypa/gh-action-pypi-publish@v1.3.1
28+
with:
29+
user: __token__
30+
password: ${{ secrets.pypi_password }}
2831
- name: Install tox
2932
run: pip install tox
3033
- name: Generate API docs

0 commit comments

Comments
 (0)