Skip to content

Workflow file for this run

---
# This workflow will upload a Python Package using poetry when a release is created
name: Upload Python Package incomfort-client
# yamllint disable-line rule:truthy
on:
release:
types:
- published
branches:
- master
jobs:
deploy:
if: "!github.event.release.prerelease"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish incomfort-client
uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build poetry-core
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}