Skip to content

Commit

Permalink
fix: release
Browse files Browse the repository at this point in the history
  • Loading branch information
artemrys committed Aug 14, 2021
1 parent 994fb2d commit 185dd15
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sr-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

set -eE
set -v
# shellcheck disable=SC1091,SC2086
source $HOME/.poetry/env
poetry version $1
poetry build
24 changes: 12 additions & 12 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,13 @@
plugins:
[
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
"prepareCmd": "./.github/workflows/sr-prepare.sh ${nextRelease.version}",
"publishCmd": "./.github/workflows/sr-release.sh",
"shell": "bash"
},
],
[
"@google/semantic-release-replace-plugin",
{
"replacements": [
{
"files": ["splunk_add_on_ucc_framework/__init__.py"],
"from": "__version__ = \".*\"",
"from": "__version__ ?=.*",
"to": "__version__ = \"${nextRelease.version}\"",
"results": [
{
Expand All @@ -52,7 +43,7 @@
},
{
"files": ["pyproject.toml"],
"from": "version = \".*\"",
"from": "version ?=.*",
"to": "version = \"${nextRelease.version}\"",
"results": [
{
Expand All @@ -67,6 +58,15 @@
]
}
],
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
"prepareCmd": "./.github/workflows/sr-prepare.sh ${nextRelease.version}",
"publishCmd": "./.github/workflows/sr-release.sh",
"shell": "bash"
},
],
[
"@semantic-release/git",
{
Expand All @@ -76,4 +76,4 @@
],
["@semantic-release/github", { "assets": ["NOTICE", "pyproject.toml"] }],
],
}
}
3 changes: 0 additions & 3 deletions splunk_add_on_ucc_framework/uccrestbuilder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
"build",
]

__version__ = "0.0.0"


RestHandlerClass = collections.namedtuple(
"RestHandlerClass",
("module", "name"),
Expand Down

0 comments on commit 185dd15

Please sign in to comment.