Skip to content

Commit

Permalink
fix: manual release and publish workflows with version updates (#35)
Browse files Browse the repository at this point in the history
## Description
This PR updates both the release and publish workflows to:
1. Ensure proper version updating across all package files
2. Use manual triggers for better control and reliability

## Changes

### Release Workflow Updates
- Added `version: true` parameter to semantic-release action
- This ensures updates to both `__init__.py` and `pyproject.toml`
versions
- Kept explicit tag and push parameters for clarity
- Maintained all necessary permissions

### Publish Workflow Updates
- Changed from tag-based trigger to manual `workflow_dispatch`
- Simplified workflow control and verification process
- Maintained all PyPI trusted publisher configurations

## Process After Changes
1. Manual trigger of "Create New Release" workflow:
   - Updates versions in package files
   - Creates new tag and GitHub release
2. Manual trigger of "Publish Python Package" workflow:
   - Builds package with updated versions
   - Publishes to PyPI
  • Loading branch information
Bjarten authored Nov 11, 2024
1 parent cbec320 commit 45de9bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Publish Python Package

on:
push:
tags:
- 'v*.*.*'
workflow_dispatch: # Manual trigger

jobs:
publish:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ jobs:
tag_format: "v{version}"
commit: true
push: true
tag: true
tag: true
version: true

0 comments on commit 45de9bb

Please sign in to comment.