Bump version: 0.0.66 → 0.0.67 #57
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
# .github/workflows/publish.yml | |
name: "Build package, publish to PyPI, create GitHub release" | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
permissions: | |
contents: write | |
packages: read | |
jobs: | |
package_build_publish_release: | |
environment: release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Generate release notes | |
uses: orhun/git-cliff-action@v4 | |
id: git-cliff | |
with: | |
config: pyproject.toml | |
args: --verbose --latest --strip header | |
env: | |
OUTPUT: RELEASE_NOTES.md | |
GITHUB_REPO: ${{ github.repository }} | |
- name: Print the release notes | |
run: cat "${{ steps.git-cliff.outputs.changelog }}" | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: "0.5.9" | |
cache-dependency-glob: uv.lock | |
enable-cache: true | |
- name: Build package into dist/ | |
run: uv build | |
- name: Publish package to PyPI | |
run: uv publish -t ${{ secrets.UV_PUBLISH_TOKEN }} | |
- name: Create GitHub release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release create ${{ github.ref_name }} ./dist/* --notes-file ${{ steps.git-cliff.outputs.changelog }} | |
- name: Allow other workflows to trigger on release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh api repos/helmut-hoffer-von-ankershoffen/starbridge/dispatches \ | |
-f event_type=release_created_programatically |