Skip to content

Release

Release #14

Workflow file for this run

name: Release
on: workflow_dispatch
jobs:
release:
name: Release to PyPI
runs-on: ubuntu-latest
if: github.repository == 'kalekundert/parametrize_from_file'
concurrency: release
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: python-semantic-release/[email protected]
id: release
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'
- uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}