Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and publish release whls #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hmohiuddinTT
Copy link

@hmohiuddinTT hmohiuddinTT commented Dec 7, 2023

This PR sets up a GitHub Actions workflow to automate building wheels for tt-flash using the Python build tool.

It only gets triggered on releases getting published, and on success will push the generated .whl file to the same release that triggered it.

The release tags must match the following format for the workflow to be triggered:
Must start with 'v*' # Push events to matching v*, i.e. v1.0.0, v2.0.0, ...

The generated Wheels files have been tested and verified on my fork of the project.

@hmohiuddinTT hmohiuddinTT marked this pull request as draft December 7, 2023 19:41
@hmohiuddinTT hmohiuddinTT linked an issue Dec 7, 2023 that may be closed by this pull request
@hmohiuddinTT hmohiuddinTT force-pushed the build-and-publish-release-whls branch 2 times, most recently from 96c2864 to 6d67891 Compare December 7, 2023 23:43
@hmohiuddinTT hmohiuddinTT marked this pull request as ready for review December 7, 2023 23:45
@hmohiuddinTT hmohiuddinTT added the enhancement New feature or request label Dec 7, 2023
@hmohiuddinTT hmohiuddinTT force-pushed the build-and-publish-release-whls branch 5 times, most recently from 4c30dd0 to b232bfd Compare April 3, 2024 18:15
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Publish to PyPI
# if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v')
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably don't need this if condition since the workflow trigger already takes care of it


# - name: Publish to PyPI
# if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v')
# uses: pypa/gh-action-pypi-publish@v1.4.2
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can upgrade this to the latest version of the action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build and Publish wheels for each release
3 participants