Skip to content

Commit

Permalink
add description and usage to the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LuukBlom committed Dec 11, 2024
1 parent 1adbb7d commit d87cfcb
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
name: release

# This workflow will build a Python package and publish it to PyPI when a new tag is created.
#
# Usage:
# - Create a new tag with the version number in the format v*.*.* where * are single digit numbers
# - Push the tag to the repository with git push --tags
#
# Result:
# - The workflow will check if the new version is greater than the latest version on PyPI
# - The workflow will build the package and publish it to PyPI
# - The workflow will also create a GitHub release with the tag name and the release notes

# Checklist for using this workflow up for a new project:
# - In this file:
# - Replace guitares with the name of your package
# - Replace 3.10 with the version of Python you want to use
# - In github settings:
# - Create an environment called `release` and setup the permissions (https://github.com/<ORGANIZATION>/<REPO_NAME>/settings/environments)
# - On PyPi:
# - Create the project and add a trusted publisher (https://pypi.org/manage/project/<PACKAGE_NAME>/settings/publishing/)
# - Ensure the publisher is configured to use:
# - environment name: `release` (can be changed, but should be the one created in the github settings)
# - the name of this workflow yml (in this case: publish-to-pypi.yml)
#

on:
push:
tags:
Expand Down

0 comments on commit d87cfcb

Please sign in to comment.