From 46ae39a8e7c50110749d118f71afcef25837f917 Mon Sep 17 00:00:00 2001 From: Mike Monteith Date: Tue, 18 May 2021 14:33:14 +0100 Subject: [PATCH] Add github publish action --- .github/workflows/deploy.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..6b2aa9a --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,24 @@ +name: Deploy + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install Dependencies for build and publish + run: pip install tox twine + - name: Build package + run: tox -e py --notest + - name: Push to pypi + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: twine upload .tox/dist/*