From 32c445618288dbbd057a49ff9689d5aaea066696 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Fri, 1 Jan 2021 14:53:19 -0700 Subject: [PATCH] add pypi release action [skip ci] --- .github/workflows/release-pypi.yml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/release-pypi.yml diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml new file mode 100644 index 0000000..8245c7c --- /dev/null +++ b/.github/workflows/release-pypi.yml @@ -0,0 +1,33 @@ +name: Release to PyPI +on: [release] + +jobs: + ci: + strategy: + fail-fast: false + matrix: + python-version: [3.6] + os: [ubuntu-20.04] + runs-on: ${{ matrix.os }} + + steps: + - name: Git Checkout + uses: actions/checkout@v2 + + - name: Install Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install Poetry + uses: abatilo/actions-poetry@v2.0.0 + with: + poetry-version: ${{ matrix.poetry-version }} + + - name: Build hyperglass + run: | + poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} + poetry build -f sdist + + - name: Publish hyperglass release + run: poetry publish