-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: improve versioning and PyPI deployment process
- Update setup.py to use environment variable for version - Modify GitHub Actions workflow to pass version between jobs - Ensure consistent versioning between git tags and package metadata - Use python -m build for more robust package building - Update documentation in README.md for new process This change improves the automation of our release process, ensuring consistent versioning across git tags, GitHub releases, and PyPI packages.
- Loading branch information
1 parent
6ff3231
commit 90d289d
Showing
3 changed files
with
25 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ on: | |
jobs: | ||
tag-and-release: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
new_version: ${{ steps.bump_version.outputs.NEW_VERSION }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -76,9 +78,8 @@ jobs: | |
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build package | ||
env: | ||
PACKAGE_VERSION: ${{ needs.tag-and-release.outputs.new_version }} | ||
run: python -m build | ||
- name: Publish package | ||
uses: pypa/[email protected] | ||
# with: | ||
# user: ${{ secrets.PYPI_PASSWORD }} | ||
# password: ${{ secrets.PYPI_PASSWORD }} | ||
uses: pypa/[email protected] |
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
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