diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..46ac019 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,21 @@ +name: Publish to PyPI +on: + push: + tags: + - "*.*.*" +jobs: + publish: + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/dask-databricks + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Build package + run: pipx install hatch && hatch build + - name: Publish + uses: pypa/gh-action-pypi-publish@release/v1