haystack/.github/workflows/pypi_release.yml
dependabot[bot] 12c9c76a40
chore(deps): bump actions/checkout from 5 to 6 (#10128)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-24 16:14:45 +01:00

32 lines
656 B
YAML

name: Project release on PyPi
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
# We must not release versions tagged with -rc0 suffix
- "!v[0-9]+.[0-9]+.[0-9]-rc0"
env:
HATCH_VERSION: "1.14.2"
jobs:
release-on-pypi:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}
- name: Build Haystack
run: hatch build
- name: Publish on PyPi
env:
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.HAYSTACK_AI_PYPI_TOKEN }}
run: hatch publish -y