Skip to content

chore: Prepare release v0.10.1 #4

chore: Prepare release v0.10.1

chore: Prepare release v0.10.1 #4

Workflow file for this run

name: Release
on:
push:
tags:
- "*"
workflow_dispatch:
start-worflow:
description: 'Number of Octocats'
required: false
default: '1'
jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v3
- name: Publish package distributions to PyPI
run: pdm publish
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
discussions: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Fetch all tags
run: git fetch --depth=1 --tags
- name: Setup Python
uses: actions/setup-python@v4
- name: Install git-changelog
run: pip install git-changelog
- name: Prepare release notes
run: git-changelog --release-notes > release-notes.md
- name: Create release
uses: softprops/action-gh-release@v1
with:
body_path: release-notes.md