diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 135b71f..cf3a94a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,7 @@ jobs: - name: Install release dependencies if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8' run: | - pip install bump-my-version build twine + pip install bumpversion build twine sudo npm install -g semantic-release \ @semantic-release/changelog \ @semantic-release/exec \ diff --git a/.releaserc b/.releaserc index c02e39b..97460ea 100644 --- a/.releaserc +++ b/.releaserc @@ -7,12 +7,13 @@ [ "@semantic-release/exec", { - "prepareCmd": "bump-my-version bump --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch" + "prepareCmd": "bumpversion --config-file pyproject.toml --allow-dirty --new-version ${nextRelease.version} patch" } ], [ "@semantic-release/git", { + "assets": ["CHANGELOG.md", "pyproject.toml", "ibm_vpc/version.py", "README.md"], "message": "chore(release): ${nextRelease.version} release notes\n\n${nextRelease.notes}", "gitUserName": "uibm", "gitUserEmail": "ujjwal.kumar1@ibm.com" diff --git a/pyproject.toml b/pyproject.toml index d12976b..85c11b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,11 +33,11 @@ dependencies = [ ] [project.urls] -Repository = "https://github.ibm.com/ibmcloud/vpc-python-sdk" -Documentation = "https://github.ibm.com/ibmcloud/vpc-python-sdk/blob/master/README.md" -Issues = "https://github.ibm.com/ibmcloud/vpc-python-sdk/issues" -Contributing = "https://github.ibm.com/ibmcloud/vpc-python-sdk/blob/master/CONTRIBUTING.md" -License = "https://github.ibm.com/ibmcloud/vpc-python-sdk/blob/master/LICENSE" +Repository = "https://github.com/IBM/vpc-python-sdk" +Documentation = "https://github.com/IBM/vpc-python-sdk/blob/master/README.md" +Issues = "https://github.com/IBM/vpc-python-sdk/issues" +Contributing = "https://github.com/IBM/vpc-python-sdk/blob/master/CONTRIBUTING.md" +License = "https://github.com/IBM/vpc-python-sdk/blob/master/LICENSE" [project.optional-dependencies] dev = [