From 6ee9c73cddc7d50798542a803a4239828537a2e9 Mon Sep 17 00:00:00 2001 From: Kristof Daja Date: Sat, 12 Dec 2020 10:51:15 +0100 Subject: [PATCH] Configuring GitHub Workflows --- .github/workflows/publish-to-test-pypi.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index 2f67451..fb33eba 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -10,25 +10,31 @@ on: jobs: build-n-publish: name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') runs-on: ubuntu-18.04 steps: - uses: actions/checkout@master + # Setup Python - name: Set up Python 3.8 uses: actions/setup-python@v1 with: python-version: 3.8 + # Install Dependencies - name: Install pypa/build run: >- python -m pip install build wheel --user + # Build Package - name: Build a binary wheel and a source tarball + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') run: >- python setup.py bdist_wheel sdist + # Publish - name: Publish distribution 📦 to Test PyPI if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master