Closed aarons20 closed 7 months ago
The current GitHub action triggers on each push to the master/main branch. However, a challenge arises as not every commit equals a new release version for the PlantUML plugin. If the version number remains unchanged, the GitHub action fails since PyPi does not allow packages with identical versions. Commits, such as pipeline improvements or typo fixes, do not result in a new version number.
I propose three potential solutions:
Develop Branch Approach:
Ignore GitHub Action Failure:
Dynamic Version Checking:
I believe any of these approaches could be a valid solution. However, having a dedicated "develop" branch for general development seems like the cleanest solution. A failed pipeline would accurately indicate that the version number wasn't increased when merging from develop to master/main. The PR process would involve merging or committing to develop, consider whether a release is needed and if it is merge with a new version number to master/main.
Feel free to give feedback on these solutions or any alternative suggestions.
I have the change ready to open a PR. Depends on you whether the target will be a "develop" branch or master :)
I suppose git tagging is not that crucial to introduce some gitflow and a develop branch. So it would be fine for me to go with version 2.
That't true. I will open the PR. I've tested it on my fork. Since I do not increase the version number in the PR the action should fail with a version number related PyPi error.
Might have to add tagging in git as well, as it does now not reflect the same state in repo and PyPi
_Originally posted by @christo-ph in https://github.com/quantorconsulting/mkdocs_build_plantuml/issues/32#issuecomment-1806320107_