Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
release:
types: [published]
workflow_dispatch:
inputs:
publish:
description: Publish to PyPI after validation
required: true
type: boolean
default: false

permissions:
contents: read
Expand All @@ -12,12 +18,13 @@ permissions:
jobs:
pypi:
name: Publish to PyPI
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64, nvoip-ci-public-release]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python -m pip install build
- run: python -m build
- uses: pypa/gh-action-pypi-publish@release/v1
- if: github.event_name == 'release' || inputs.publish
uses: pypa/gh-action-pypi-publish@release/v1
Loading