nutti / fake-bpy-module

Fake Blender Python API module collection for the code completion.
MIT License
1.35k stars 96 forks source link

auto PyPi publishing #65

Closed grische closed 4 years ago

grische commented 4 years ago

Purpose of the pull request
Make the PyPi publishing process automatic without manual user intervention.

Description about the pull request

  1. It adds a new trigger for Github releases.
  2. It changes versioning scheme
    1. default: YYYYmmdd.devHHMMSS
    2. releases: infer version from tag name
    3. PRs: use default + githash: YYYYmmdd.devHHMMSS+abcdef01
  3. Automatically builds + publishes all non-PRs to TestPyPi
  4. Automatically builds + publishes all GitHub releases to PyPi

Additional comments Do you want me to split the PR into two separate ones?

  1. For changing the versioning scheme
  2. For adding the PyPi publishing

Release workflow In order to publish automatically to PyPi, you have to go into releases and create a new release (be aware that "Pre-Releases" do not count!).

This will then trigger a Github Action which publishes to PyPi.

Example:

nutti commented 4 years ago

From the conversation, the PyPI test is not triggered on this PR. I will merge this PR for now.