-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from sandialabs/semantic-release
ci: Set up semantice-release
- Loading branch information
Showing
5 changed files
with
92 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -51,3 +51,11 @@ jobs: | |
- name: Test uninstall | ||
run: | | ||
python3 -m pip uninstall -y reverse_argparse | ||
commits: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Conventional Commits | ||
uses: taskmedia/[email protected] | ||
with: | ||
types: "build|chore|ci|docs|feat|fix|perf|style|refactor|test" |
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 @@ | ||
name: Semantic Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
concurrency: release | ||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Python Semantic Release | ||
uses: python-semantic-release/python-semantic-release@master | ||
with: | ||
github_token: ${{ secrets.GH_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
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,29 @@ | ||
# CHANGELOG | ||
|
||
|
||
{% if context.history.unreleased | length > 0 %} | ||
## Unreleased | ||
{% for type_, commits in context.history.unreleased | dictsort %} | ||
### {{ type_ | capitalize if type_ != "ci" else "Continuous Integration "}} | ||
{% for commit in commits -%} | ||
{%- set summary = commit.message.rstrip().splitlines()[0] -%} | ||
{%- set details = commit.message.rstrip().splitlines()[2:] -%} | ||
* {{ summary }} ([`{{ commit.hexsha[:7] }}`]({{ commit.hexsha | commit_hash_url }})) | ||
{% if details %} | ||
{% for line in details %}{% if line.strip() %} {{ line }}{% endif %} | ||
{% endfor %}{% endif %}{% endfor -%} | ||
{% endfor %} | ||
{% endif %} | ||
|
||
{% 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 if type_ != "ci" else "Continuous Integration "}} | ||
{% for commit in commits -%} | ||
{%- set summary = commit.message.rstrip().splitlines()[0] -%} | ||
{%- set details = commit.message.rstrip().splitlines()[2:] -%} | ||
* {{ summary }} ([`{{ commit.hexsha[:7] }}`]({{ commit.hexsha | commit_hash_url }})) | ||
{% if details %} | ||
{% for line in details %}{% if line.strip() %} {{ line }}{% endif %} | ||
{% endfor %}{% endif -%} | ||
{% endfor %}{% endfor %}{% endfor %} |