-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the pypa-blessed github action to publish built wheels automatically to PyPI: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ Just following the instructions there, with modifications to handle our three different packages. This setup is much nicer in combination with automatic versioning; when a tag is pushed (which will tell setuptools_scm that the symforce version should be that tag), wheels are published to PyPI. Topic: sf-auto-publish Relative: sf-auto-version
- Loading branch information
1 parent
d1ced09
commit bc482e7
Showing
2 changed files
with
39 additions
and
6 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 |
---|---|---|
|
@@ -4,6 +4,8 @@ on: | |
push: | ||
branches: | ||
- 'main' | ||
tags: | ||
- 'v*.*.*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -89,6 +91,7 @@ jobs: | |
|
||
- run: python3 -m pip install setuptools_scm | ||
- run: echo "SYMFORCE_VERSION=$(python3 -m setuptools_scm)" >> $GITHUB_ENV | ||
- run: echo $SYMFORCE_VERSION | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
|
@@ -115,3 +118,33 @@ jobs: | |
with: | ||
name: symforce-wheels | ||
delete-merged: true | ||
|
||
# publish-to-pypi: | ||
# name: Publish Python 🐍 distribution 📦 to PyPI | ||
# strategy: | ||
# matrix: | ||
# package: [symforce, symforce_sym, skymarshal] | ||
# if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes | ||
# needs: | ||
# - merge-wheel-artifacts | ||
# runs-on: ubuntu-latest | ||
|
||
# environment: | ||
# name: testpypi | ||
# url: https://test.pypi.org/p/${{ matrix.package }} | ||
|
||
# permissions: | ||
# id-token: write | ||
|
||
# steps: | ||
# - name: Download all the dists | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: symforce-wheels | ||
# path: wheels-download/ | ||
# - run: mkdir dist && cp wheels-download/${{ matrix.package }}-*.whl dist/ | ||
# - name: Publish distribution 📦 to PyPI | ||
# uses: pypa/gh-action-pypi-publish@release/v1 | ||
# with: | ||
# verbose: true | ||
# repository-url: https://test.pypi.org/legacy/ |
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