Skip to content

chore(ci): fail CI if a personal access token secret is referenced (g… #430

chore(ci): fail CI if a personal access token secret is referenced (g…

chore(ci): fail CI if a personal access token secret is referenced (g… #430

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
name: Publish
runs-on: ubuntu-22.04
if: "startsWith(github.event.head_commit.message, 'chore: release')"
environment:
name: pypi
url: https://pypi.org/p/algoliasearch
permissions:
id-token: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
# DO NOT upgrade to Python 3.14+: the PyPI release toolchain (poetry/twine)
# is not compatible with it and publishing the package fails.
# Keep this on the latest 3.13.x patch. See .agents/skills/renovate/SKILL.md.
python-version: 3.13.15
- name: install poetry
shell: bash
run: pipx install poetry
- name: install dependencies
shell: bash
run: poetry install
- name: build client
run: poetry build
shell: bash
- name: Publish algoliasearch package to PyPI
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2