Skip to content

Commit

Permalink
ci: bump version after release
Browse files Browse the repository at this point in the history
  • Loading branch information
artemrys committed Aug 13, 2021
1 parent 6cc76bd commit 8902f03
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ jobs:
extra_plugins: |
@semantic-release/exec
@semantic-release/git
@google/semantic-release-replace-plugin
env:
GITHUB_TOKEN: ${{ secrets.SEMREL_TOKEN }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand Down
37 changes: 36 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,45 @@
"shell": "bash"
},
],
[
"@google/semantic-release-replace-plugin",
{
"replacements": [
{
"files": ["splunk_add_on_ucc_framework/__init__.py"],
"from": "__version__ = \".*\"",
"to": "__version__ = \"${nextRelease.version}\"",
"results": [
{
"file": "splunk_add_on_ucc_framework/__init__.py",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
}
],
"countMatches": true
},
{
"files": ["pyproject.toml"],
"from": "version = \".*\"",
"to": "version = \"${nextRelease.version}\"",
"results": [
{
"file": "pyproject.toml",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
}
],
"countMatches": true
}
]
}
],
[
"@semantic-release/git",
{
"assets": ["NOTICE"],
"assets": ["NOTICE", "pyproject.toml", "splunk_add_on_ucc_framework/__init__.py"],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}",
},
],
Expand Down

0 comments on commit 8902f03

Please sign in to comment.