diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ce529bb..9224203 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,15 +16,22 @@ jobs: python-version: [3.7, 3.8, 3.9] steps: - + - name: checkout uses: actions/checkout@v2 with: fetch-depth: 1 - + - name: Build run: | sudo apt install graphviz sudo python setup.py install sudo pip install -r minimal-requirements.txt ./test.sh + + - name: Publish package + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_TOKEN }}