Skip to content

Merge pull request #290 from DataDog/fix-non-zero-exit-code #45

Merge pull request #290 from DataDog/fix-non-zero-exit-code

Merge pull request #290 from DataDog/fix-non-zero-exit-code #45

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/[email protected]
with:
fetch-depth: 0
- name: 'Set up Python 3.10'
uses: actions/setup-python@v4
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 }}