-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): add semantic version releasing mechanism (#1039)
Co-authored-by: Keep Release Bot <[email protected]> Co-authored-by: Shahar Glazner <[email protected]>
- Loading branch information
1 parent
0e485e6
commit 4de7701
Showing
4 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Keep Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
concurrency: release | ||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
|
||
- name: Release Keep | ||
uses: python-semantic-release/[email protected] | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
git_committer_name: Keep Release Bot | ||
git_committer_email: [email protected] | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# CHANGELOG | ||
{% if context.history.unreleased | length > 0 %} | ||
|
||
{# UNRELEASED #} | ||
## Unreleased | ||
{% for type_, commits in context.history.unreleased | dictsort %} | ||
### {{ type_ | capitalize }} | ||
{% for commit in commits %}{% if type_ != "unknown" %} | ||
* {{ commit.commit.message.rstrip() }} ([`{{ commit.commit.hexsha[:7] }}`]({{ commit.commit.hexsha | commit_hash_url }})) | ||
{% else %} | ||
* {{ commit.commit.message.rstrip() }} ([`{{ commit.commit.hexsha[:7] }}`]({{ commit.commit.hexsha | commit_hash_url }})) | ||
{% endif %}{% endfor %}{% endfor %} | ||
|
||
{% endif %} | ||
|
||
{# RELEASED #} | ||
{% for version, release in context.history.released.items() %} | ||
## {{ version.as_tag() }} ({{ release.tagged_date.strftime("%Y-%m-%d") }}) | ||
{% for type_, commits in release["elements"] | dictsort %} | ||
### {{ type_ | capitalize }} | ||
{% for commit in commits %}{% if type_ != "unknown" %} | ||
* {{ commit.commit.message.rstrip() }} ([`{{ commit.commit.hexsha[:7] }}`]({{ commit.commit.hexsha | commit_hash_url }})) | ||
{% else %} | ||
* {{ commit.commit.message.rstrip() }} ([`{{ commit.commit.hexsha[:7] }}`]({{ commit.commit.hexsha | commit_hash_url }})) | ||
{% endif %}{% endfor %}{% endfor %}{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters