Skip to content

Commit

Permalink
add release action (#29)
Browse files Browse the repository at this point in the history
* add release action

* trigger on pull_request

* Update release.yml
  • Loading branch information
njzjz committed May 28, 2021
1 parent 8e1307f commit b1f6521
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on: [push, pull_request]
name: Release to pypi
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.7
architecture: x64
- run: python setup.py sdist
- name: Publish a Python distribution to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit b1f6521

Please sign in to comment.