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

GH action for PyPI publication #1676

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

Conversation

crazyscientist
Copy link
Contributor

Automatically release to PyPI when creating a release in GH

Automatically release to PyPI when
creating a release in GH
@crazyscientist
Copy link
Contributor Author

Action was tested in my forked repo by releasing v1.10.1.

The openSUSE/osc repo is configured as trusted publisher in PyPI.

Comment on lines +2 to +4
on:
release:
types: [released]
Copy link
Contributor

Choose a reason for hiding this comment

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

We're not using proper releases in osc, just tags.
It might be good to restrict this to the master branch from where most releases usually come.
How about to change this to the following?

on:
  push:
    branches:
    - master
    tags:
    - '[0-9]+.[0-9]+.[0-9]+'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, yes, tat makes sense. I could have checked.

But I don't know when I will find the time...

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.

2 participants