diff --git a/.github/workflows/pypi_publish.yml b/.github/workflows/pypi_publish.yml new file mode 100644 index 0000000..3498b39 --- /dev/null +++ b/.github/workflows/pypi_publish.yml @@ -0,0 +1,22 @@ +# Copyright (c) 2022 Joseph Hale +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +name: Publish to PyPi + +on: + push: + tags: + - "v*.*.*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v1.11 + with: + pypi_token: ${{ secrets.PYPI_TOKEN }}