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 }}