Skip to content

chore: Bump version 0.9.10.dev3 to 0.9.10 #44

chore: Bump version 0.9.10.dev3 to 0.9.10

chore: Bump version 0.9.10.dev3 to 0.9.10 #44

Workflow file for this run

---
name: Create release
on:
push:
tags:
- 'v*'
jobs:
changelog:
name: Generate changelog
runs-on: ubuntu-latest
outputs:
changelog: ${{ steps.changelog.outputs.changelog }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch entire history
- name: Set up git-cliff
uses: kenji-miyake/setup-git-cliff@v2
- name: Generate changelog
run: |
git cliff --verbose --config ${{ github.workspace }}/.gitcliff.toml --latest --strip all --output ${{ github.workspace }}/CHANGELOG.md
- name: Export changelog
uses: actions/upload-artifact@v4
with:
name: changelog
path: ${{ github.workspace }}/CHANGELOG.md
deploy:
name: Deploy wheel to pypi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel pdm
pdm install -G:all
- name: Build and publish
env:
PDM_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }}
PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pdm publish
release:
name: Create Release
runs-on: ubuntu-latest
needs: [ changelog, deploy ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get changelog
uses: actions/download-artifact@v4
with:
name: changelog
path: ${{ github.workspace }}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
body_path: ${{ github.workspace }}/CHANGELOG.md
prerelease: ${{ (startsWith(steps.tag_name.outputs.version, 'v0')) || (endsWith(steps.tag_name.outputs.version, '-pre')) || (endsWith(steps.tag_name.outputs.version, '-dev')) }}
draft: false
name: Release ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}