-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fireblocks_dx_team
committed
Jun 19, 2024
1 parent
fc6fa95
commit f24eb60
Showing
12 changed files
with
85 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[tool.bumpversion] | ||
commit = false | ||
tag = false | ||
current_version = "0.0.0" | ||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\-(?P<release>[a-z_]+))?" | ||
serialize = [ | ||
"{major}.{minor}.{patch}-{release}", | ||
"{major}.{minor}.{patch}" | ||
] | ||
[[tool.bumpversion.files]] | ||
filename = "setup.py" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "pyproject.toml" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "fireblocks/__init__.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,40 @@ on: | |
- 'fireblocks-api-spec/generated/*' | ||
|
||
jobs: | ||
bump-version: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
pip install bump-my-version | ||
- name: Bump version | ||
run: | | ||
initialTag=v0.0.1 | ||
tag="${initialTag//[v]/}" | ||
echo $tag | ||
git remote update | ||
git fetch | ||
echo "finished fetching" | ||
echo "finished checkout" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Actions" | ||
echo "finished configuration" | ||
bump-my-version bump --config-file .bump_version.toml --current-version 0.0.0-base_version --new-version $tag | ||
echo "bumpversion finished" | ||
git add . | ||
git commit -m "release $tag" | ||
git push | ||
create-pull-request: | ||
needs: bump-version | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,25 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
pip install bump-my-version | ||
- name: Bump version | ||
run: | | ||
initialTag=${{ github.event.release.tag_name }} | ||
tag="${initialTag//[v]/}" | ||
echo $tag | ||
git remote update | ||
git fetch | ||
echo "finished fetching" | ||
git checkout --track origin/master | ||
echo "finished checkout" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Actions" | ||
echo "finished configuration" | ||
bump-my-version bump --config-file .bump_version.toml --current-version 0.0.0-base_version --new-version $tag | ||
echo "bumpversion finished" | ||
git add . | ||
git commit -m "release $tag" | ||
git push | ||
- name: Build package | ||
run: python -m build | ||
- name: Publish package | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.bump_version.toml | ||
.gitignore | ||
LICENSE.txt | ||
README.md | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "fireblocks" | ||
version = "1.0.3" | ||
version = "0.0.0-base_version" | ||
description = "Fireblocks API" | ||
authors = ["Fireblocks <[email protected]>"] | ||
license = "MIT License" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters