File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,18 @@ plugins:
3636 - files : [pyproject.toml] # optional: SemVer prerelease -> PEP440 ("1.2.3-rc.10" -> "1.2.3rc10" )
3737 from : ' ^version = "(\\d+\\.\\d+\\.\\d+)-(a|b|rc)\\.(\\d+)"'
3838 to : ' version = "\\1\\2\\3"'
39+ - - '@google/semantic-release-replace-plugin' # optional enforcement of distribution name
40+ - replacements :
41+ - files : [pyproject.toml] # optional: SemVer prerelease -> PEP440 ("1.2.3-dev.1" -> "1.2.3.dev1")
42+ from : ^name = ".*?"
43+ to : name = "${process.env.DISTRIBUTION_NAME}"
3944- - '@semantic-release/git'
4045 - assets :
4146 - CHANGELOG.md
4247 - pyproject.toml
4348- - '@semantic-release/exec'
4449 - prepareCmd : |
45- poetry build --config-settings name="$DISTRIBUTION_NAME" && /bin/bash ./ci/scripts/patch_artifacts_if_distribution_name_is_altered.sh dist/*.whl dist/*.tar.gz
50+ poetry build && /bin/bash ./ci/scripts/patch_artifacts_if_distribution_name_is_altered.sh dist/*.whl dist/*.tar.gz
4651 - - '@semantic-release/github'
4752 - assets :
4853 - dist/*.whl
You can’t perform that action at this time.
0 commit comments