Skip to content

Commit

Permalink
add github action config
Browse files Browse the repository at this point in the history
  • Loading branch information
shoya shiraki committed Mar 23, 2020
1 parent 153427e commit 4e71d87
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: publish-pypi
on: push

jobs:
build:
name: publish-pypi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
- name: Build wheels
run: |
python setup.py sdist bdist_wheel
- name: Publish wheels to PyPI
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}

0 comments on commit 4e71d87

Please sign in to comment.