Skip to content

Commit

Permalink
Semantic versioning (#140)
Browse files Browse the repository at this point in the history
* ci: fixing semantic versioning

* ci: fixing semantic versioning

* ci: fixing semantic versioning

* fixing the mess

* fix:  the mess

* ci: fixing semantic versioning

* fix:  the mess

* ci: fixing semantic versioning

* fix: forcing release

* ci: fixing semantic versioning

* fix: forcing release
  • Loading branch information
vijayvammi authored Apr 18, 2024
1 parent 6095aff commit 63f1737
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
argo version
- run: python -m pip install poetry
- run: |
python -m poetry install
# python -m poetry install
poetry run tox
Release:
Expand All @@ -52,6 +52,8 @@ jobs:
- name: Figure version
continue-on-error: true
env:
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
id: last_tag
run: |
CURRENT=$(python -m poetry run semantic-release --noop version --print-last-released)
Expand All @@ -60,7 +62,7 @@ jobs:
VERSION=$(python -m poetry run semantic-release --noop version --print)
echo "new: $VERSION"
python -m poetry run semantic-release -vv version --tag --push
python -m poetry run semantic-release version --tag --push
if [ "$CURRENT" == "$VERSION" ]; then
echo "version=$VERSION" >> $GITHUB_OUTPUT
Expand Down
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,12 @@ build-backend = "poetry.core.masonry.api"

[tool.semantic_release]
allow_zero_version = true
# tag_commit = true
major_on_zero = false
# commit_version_number = false
# upload_to_pypi = false
# upload_to_repository = false
# upload_to_release = false
tag_format = "{version}"

[tool.semantic_release.remote.token]
env = "GH_TOKEN"

[tool.semantic_release.branches.main]
match = "main"

Expand Down

0 comments on commit 63f1737

Please sign in to comment.