diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..900c685 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,20 @@ +name: publish +on: release + +jobs: + pypi-publish: + name: upload release to PyPI + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - uses: "actions/checkout@v3" + - uses: "actions/setup-python@v4" + with: + python-version: 3.7 + - name: "Install dependencies" + run: "pip install -r requirements.txt" + - name: "Build" + run: "hatch build" + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1