Bump version: 0.1.4 → 0.1.5 #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate a draft release on GitHub when a new tag is pushed | |
# The draft release will contain draft release notes and some built wheels | |
name: Release | |
on: | |
push: | |
tags: ['v*'] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
draft-release: | |
name: Create draft release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/setup | |
- name: Add version to environment | |
run: | | |
PROJECT_VERSION=`sed -ne 's/^version = "\([0-9\.abrc]*\)"/\1/p' pyproject.toml` | |
echo "PROJECT_VERSION=$PROJECT_VERSION" >> $GITHUB_ENV | |
- name: Build package for PyPI | |
run: make build | |
- name: Generate Release Notes | |
run: | | |
echo "" >> ".github/release_template.md" | |
echo "## Changelog" >> ".github/release_template.md" | |
echo "" >> ".github/release_template.md" | |
uv run python scripts/changelog-to-release-template.py >> ".github/release_template.md" | |
echo "" >> ".github/release_template.md" | |
echo "## Changes" >> ".github/release_template.md" | |
echo "" >> ".github/release_template.md" | |
git log $(git describe --tags --abbrev=0 HEAD^)..HEAD --pretty='format:* %h %s' --no-merges >> ".github/release_template.md" | |
echo .github/release_template.md | |
- name: Create Release Draft | |
uses: softprops/action-gh-release@v2 | |
with: | |
body_path: ".github/release_template.md" | |
token: "${{ secrets.PAT }}" | |
draft: true | |
files: | | |
dist/* |