Skip to content

Commit f3213b6

Browse files
committed
Update release.yml
1 parent feada51 commit f3213b6

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: Release
22
on:
3-
push:
4-
branches:
5-
- release-workflow-refactor
3+
release:
4+
types: [published]
65

76
jobs:
87
publish:
@@ -19,16 +18,11 @@ jobs:
1918
run: pip install twine
2019
- name: Build package
2120
run: python setup.py sdist
22-
- name: Create Release
23-
id: create_release
24-
uses: actions/create-release@v1
25-
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
# - name: Publish package to PyPI
28-
# uses: pypa/gh-action-pypi-publish@v1.3.1
29-
# with:
30-
# user: __token__
31-
# password: ${{ secrets.pypi_password }}
21+
- name: Publish package to PyPI
22+
uses: pypa/gh-action-pypi-publish@v1.3.1
23+
with:
24+
user: __token__
25+
password: ${{ secrets.pypi_password }}
3226
- name: Install tox
3327
run: pip install tox
3428
- name: Generate API docs

0 commit comments

Comments
 (0)