Add publish workflow

This commit is contained in:
Regen
2019-11-16 23:05:20 +09:00
parent 0d28e79369
commit a634d7ee14

26
.github/workflows/publish.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Publish
on:
push:
tags:
- v*
jobs:
build-n-publish:
name: Build and publish
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install poetry
- name: Build a binary wheel and a source tarball
run: |
poetry build
- name: Publish distribution to PyPI
run: |
poetry publish -u __token__ -p ${{ secrets.pypi_password }}