From 7deccfdb2dca6fd6ee41c4a52c22127e3b995c26 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 3 Oct 2019 20:07:43 +0100 Subject: [PATCH] GitHub Actions workflow --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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 00000000..78198ac1 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: Publish + +on: + release: + types: [published] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@master + - name: Setup Python + uses: actions/setup-python@master + with: + python-version: 3.x + architecture: x64 + - name: Build a source distribution + run: python setup.py sdist + - name: Publish to prod PyPI + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.pypi_token }}