diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d8aa1d05..bdf7fe30 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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: @@ -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) @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 4c2379ff..f1ceb710 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"