From 48090723d06e6f09245f346c145b4400be214b2b Mon Sep 17 00:00:00 2001 From: Jacob Tomlinson Date: Thu, 9 Nov 2023 17:43:55 +0000 Subject: [PATCH] Add release CI --- .github/workflows/release.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/release.yaml 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