Updated release (#132) #92
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release pipeline | |
on: | |
push: | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
branches: | |
- master | |
jobs: | |
release-pipeline: | |
runs-on: | |
group: databrickslabs-protected-runner-group | |
labels: 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 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
cache-dependency-path: setup.py | |
- name: Install pip | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install build dependencies | |
run: | | |
pip install build | |
- name: Build distribution | |
run: | | |
python -m build | |
- name: Publish distribution 📦 to PyPI | |
if: startsWith(github.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@release/v1 |