Skip to content

Merge pull request #117 from druids/INFRA-92 #87

Merge pull request #117 from druids/INFRA-92

Merge pull request #117 from druids/INFRA-92 #87

Workflow file for this run

name: Publish Python distributions to PyPI
on:
push:
tags:
- '*'
jobs:
build-n-publish:
name: Build and publish
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@master
- name: Set up Python
if: startsWith(github.event.ref, 'refs/tags')
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Replace version
if: startsWith(github.event.ref, 'refs/tags')
run: sed -i 's/__version__/'"${GITHUB_REF:10}"'/' setup.py
- name: Build package dist
if: startsWith(github.event.ref, 'refs/tags')
run: python setup.py sdist
- name: Publish distribution to PyPI
if: startsWith(github.event.ref, 'refs/tags')
uses: pypa/[email protected]
with:
password: ${{ secrets.pypi_password }}