Skip to content

Merge pull request #71 from tharropoulos/build #4

Merge pull request #71 from tharropoulos/build

Merge pull request #71 from tharropoulos/build #4

Workflow file for this run

name: Publish Package to PyPI
on:
push:
tags:
- 'v*'
jobs:
build-n-publish:
name: Build and Publish
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/typesense
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
cache: pip
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: |
rm -rf dist/
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: true