Skip to content

Release

Release #5

Workflow file for this run

name: release
on:
workflow_run:
workflows: [ "build koheesio" ]
types:
- completed
concurrency:
group: ${{ github.workflow }}-${{ github.event.workflow_run.event.pull_request.number || github.sha }}
cancel-in-progress: true
defaults:
run:
shell: bash
env:
APP_NAME: koheesio
PYTHON_VERSION: "3.12"
PYOXIDIZER_VERSION: "0.24.0"
DIST_URL: "https://github.com/Nike-Inc/koheesio/releases"
jobs:
publish-pypi:
name: Publish to PyPI
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && startsWith(github.event.workflow_run.head_commit.message, 'refs/tags') }}
runs-on: ubuntu-latest
steps:
- name: Download Python artifacts
uses: actions/download-artifact@v4
with:
name: python-artifacts
path: dist
- name: Publish package to PyPI
uses: pypa/[email protected]
with:
print-hash: true
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}