Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This workflow manages releases cycle and releavant version in files.
Features
Let's start with adding a new release, i.e.
1.5.0
. Firstly, you need to create a new branch, namedrelease/1.5.0
Make some changes, or if you do not do anything (
--allow-empty
means you don't have to make changes), just issueThen push to GitHub
Now this workflow will run,
hyfetch/constants.py
,When running first time it will set version to
1.5.0rc1
. And if you don't get satisfied with this prerelease, you can edit this branch locally, and commit again. Once the second push is done, it will run again with version set to1.5.0rc2
, and do the work above.After you've made all tests and believe it's ready for release,change something or not, and make a commit with message start with
release
. For example:This workflow will run again and
hyfetch/constants.py
,package.json
andneofetch
### Unpublished
to### 1.5.0
### 1.5.0
to be the release changelog,TODO
Add your PYPI api token to secrets
PYPI_API_TOKEN
and GitHub user api token toGITHUB_API_TOKEN