diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..e12fc20 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,25 @@ +name: Release + +on: + release: + types: + - created + +jobs: + pypi: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Set up python + id: setup-python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Install Poetry + uses: snok/install-poetry@v1 + - name: Install Project + run: poetry install + - name: Build and Upload + run: | + poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} + poetry publish --build