Skip to content

Commit

Permalink
add verification for versions
Browse files Browse the repository at this point in the history
  • Loading branch information
zongsizhang committed Apr 29, 2024
1 parent eaefcca commit d599735
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
8 changes: 8 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Maintainer Guidance

## Publish package to pypi
When we are ready to release a new version `vx.y.z`, one of the maintainers should:
1. Edit the `pyproject.toml` file, update the `[tool.poetry].version = vx.y.z`
2. Create a new tag `git tag vx.y.z`, if the tag doesn't match with the project version, step 4 validation will fail
3. push the tag to the repo `git push origin vx.y.z`
4. There will be a GitHub Action triggered automatically, which will build and publish to pypi
22 changes: 3 additions & 19 deletions .github/workflows/pypi-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@ on:

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/airflow-providers-wherobots
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Poetry Build
run: |
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
name: Publish package to Pypi
uses: wherobots/ci-tools/.github/workflows/poetry-pypi-publish.yaml/@main
secrets: inherit

0 comments on commit d599735

Please sign in to comment.