From 50d94b6c06153dd606b55554b4fffd7e9272c744 Mon Sep 17 00:00:00 2001 From: futuresharks Date: Wed, 1 Jul 2020 20:05:54 +0200 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a941d32 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name: Publish Python 🐍 distributions 📦 to PyPI +on: push +jobs: + build-n-publish: + name: Build and publish Python 🐍 distributions 📦 to PyPI + 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: Run sdist + run: python3 setup.py sdist + - name: Publish distribution 📦 to PyPI + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@00ef3b81828a3fa69f3434842ce50ec3981351b0 + with: + user: __token__ + password: ${{ secrets.pypi_password }}