Skip to content

ci: enable trusted PyPI publishing #1

ci: enable trusted PyPI publishing

ci: enable trusted PyPI publishing #1

Workflow file for this run

# SPDX-FileCopyrightText: 2026-present Context.dev
#
# SPDX-License-Identifier: Apache-2.0
name: Release
on:
push:
tags:
- "v[0-9].[0-9]+.[0-9]+*"
jobs:
release-on-pypi:
name: Publish on PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/context-dev-haystack
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
- name: Install Hatch
run: |
python -m pip install --upgrade pip
pip install hatch --uploaded-prior-to=P1D
- name: Build
run: hatch build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # release/v1