Skip to content

Merge pull request #344 from DataDog/dependabot/pip/setuptools-69.5.1 #52

Merge pull request #344 from DataDog/dependabot/pip/setuptools-69.5.1

Merge pull request #344 from DataDog/dependabot/pip/setuptools-69.5.1 #52

Workflow file for this run

name: Release PyPI package
on:
push:
tags:
- "v*"
permissions:
contents: read
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Set up Python 3.10'
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install poetry
run: python -m pip install poetry --user
- name: Build
run: |
poetry version $(git describe --tags --abbrev=0)
poetry build
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_PUBLISH_TOKEN }}