diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ac03e37..7d82110 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,5 +44,20 @@ jobs: runs-on: ubuntu-latest needs: [test] steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.10" + - name: build package + run: | + python -m pip install -U build + python -m build + - 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_API_TOKEN }} - name: note that all tests succeeded run: echo "🎉"