mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-10-12 02:12:50 +00:00
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
39 lines
874 B
YAML
39 lines
874 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.16.5"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
release-on-pypi:
|
|
runs-on: ubuntu-latest
|
|
environment: pypi
|
|
permissions:
|
|
id-token: write
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install Hatch
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
|
|
|
|
- name: Build Haystack
|
|
run: hatch build
|
|
|
|
- name: Publish on PyPi
|
|
uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247 # v1.14.1
|