From a634d7ee14f01ad8cb431af01fc599f7332a8418 Mon Sep 17 00:00:00 2001 From: Regen Date: Sat, 16 Nov 2019 23:05:20 +0900 Subject: [PATCH] Add publish workflow --- .github/workflows/publish.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..478c9f7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 }}