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

Release workflow #38

Merged
merged 3 commits into from
Sep 19, 2022
Merged

Release workflow #38

merged 3 commits into from
Sep 19, 2022

Conversation

nhuet
Copy link
Contributor

@nhuet nhuet commented Sep 15, 2022

When pushing on tags matching 'v[0-9]+.[0-9]+.[0-9]+' regular pattern, we trigger also the workflow which moreover

  • update the version number of the package
  • generate a github release
  • publish the release to
    • to TestPyPI if on a fork (for testing purpose)
    • to PyPI if on airbus main repository

See the result of the workflow on my fork, with the github fake release and the correponding package on TestPyPI.

NB: the auto-generated release notes will be more meaningful on the main repo since it takes into account PR titles and there are no PR on my fork.

@g-poveda g-poveda requested a review from fteicht September 15, 2022 12:31
@g-poveda
Copy link
Collaborator

Nice ! just pinging @fteicht who is a bit the pypi master here

- long description is needed, read from README.md
- version number is taken from package __init__.py so that it stays
  synchronized. This code part is taken directly from pip setup.py.
- add more metadata

The version number is meant to be dynamically updated during release workflow.
- workflow is triggered also by pushs on tags matching 'v[0-9]+.[0-9]+.[0-9]+' regular pattern
- when pushing on a tag, the package version number is updated according to the tag name stripped from the initial v
- new "deploy" job (only triggered by a push on a tag):
   - create the github release with the wheels as asset, and auto
     generated release notes from merged PRs
   - publish release on Test Pypi for forks
   - publish release on Pypi for main repo airbus/discrete-optimization
@fteicht fteicht merged commit 45bacd3 into airbus:master Sep 19, 2022
@nhuet nhuet deleted the release_wf branch September 20, 2022 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants