Skip to content

Commit

Permalink
feat: Enable python-semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
jdobes committed Jul 9, 2024
1 parent 1317faa commit 6d1cf89
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: build
cancel-in-progress: true
env:
REGISTRY: docker.io
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Semantic Release

on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
concurrency: release
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GH_TOKEN }}
root_options: "-v -c releaserc.json"
76 changes: 76 additions & 0 deletions releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"semantic_release": {
"assets": [],
"branches": {
"main": {
"match": "(main|master)",
"prerelease_token": "rc",
"prerelease": false
}
},
"build_command_env": [],
"changelog": {
"template_dir": "templates",
"changelog_file": "CHANGELOG.md",
"exclude_commit_patterns": [],
"environment": {
"block_start_string": "{%",
"block_end_string": "%}",
"variable_start_string": "{{",
"variable_end_string": "}}",
"comment_start_string": "{#",
"comment_end_string": "#}",
"trim_blocks": false,
"lstrip_blocks": false,
"newline_sequence": "\n",
"keep_trailing_newline": false,
"extensions": [],
"autoescape": true
}
},
"commit_author": {
"env": "GIT_COMMIT_AUTHOR",
"default": "semantic-release <semantic-release>"
},
"commit_message": "{version}\n\nAutomatically generated by python-semantic-release",
"commit_parser": "angular",
"commit_parser_options": {
"allowed_tags": [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"style",
"refactor",
"test"
],
"minor_tags": [
"feat"
],
"patch_tags": [
"fix",
"perf"
],
"default_bump_level": 0
},
"logging_use_named_masks": false,
"allow_zero_version": false,
"remote": {
"name": "origin",
"type": "github",
"ignore_token_for_push": false,
"insecure": false
},
"no_git_verify": false,
"tag_format": "v{version}",
"publish": {
"dist_glob_patterns": [
"dist/*"
],
"upload_to_vcs_release": false
}
}
}

0 comments on commit 6d1cf89

Please sign in to comment.