Skip to content

Semantic Release

Semantic Release #2

name: Semantic Release
on: workflow_dispatch
jobs:
semantic-release:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/trame-slicer
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
contents: write # IMPORTANT: mandatory for making GitHub Releases
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
changelog: true
build: false # build is too complex to be handled by semantic release