Skip to content

Release v0.2.1 (#46) #5

Release v0.2.1 (#46)

Release v0.2.1 (#46) #5

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
environment: release
permissions:
# Used to authenticate to PyPI via OIDC and sign the release's artifacts with sigstore-python.
id-token: write
# Used to attach signing artifacts to the published release.
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
cache: 'pip'
cache-dependency-path: '**/pyproject.toml'
python-version: '3.10'
- name: Build wheels
run: |
pip install hatch==1.9.4
hatch build
- name: Draft release
uses: softprops/action-gh-release@v2
with:
files: |
dist/databricks_*.whl
dist/databricks_*.tar.gz
- uses: pypa/gh-action-pypi-publish@release/v1
name: Publish package distributions to PyPI
- name: Sign artifacts with Sigstore
uses: sigstore/[email protected]
with:
inputs: |
dist/databricks_*.whl
dist/databricks_*.tar.gz
release-signing-artifacts: true