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
22 changes: 16 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
name: Release
# yamllint disable-line rule:truthy
on:
Comment thread
julien-carsique-sonarsource marked this conversation as resolved.
release:
types:
- published
workflow_dispatch:
inputs:
version:
description: 'Release version'
required: true
type: string
publishToTestPyPI:
description: 'Publish to Test PyPI instead of PyPI'
required: false
type: boolean
default: false

jobs:
release:
permissions:
id-token: write
contents: write
uses: SonarSource/gh-action_release/.github/workflows/main.yaml@v6
uses: SonarSource/gh-action_release/.github/workflows/main.yaml@master # dogfood
Comment thread
julien-carsique-sonarsource marked this conversation as resolved.
with:
publishToPyPI: ${{ !github.event.release.prerelease }} # Only publish to PyPI for non-prerelease releases
publishToTestPyPI: ${{ github.event.release.prerelease }}
version: ${{ inputs.version }}
publishToPyPI: ${{ !inputs.publishToTestPyPI }}
publishToTestPyPI: ${{ inputs.publishToTestPyPI }}
skipPythonReleasabilityChecks: true
isDummyProject: true
Loading