Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump relekang/python-semantic-release from 7.34.6 to 8.0.8 #22

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,29 @@ jobs:
with:
fetch-depth: 0

- name: Release
uses: relekang/[email protected]
- name: Python Semantic Release
id: release
uses: python-semantic-release/[email protected]
if: github.ref_name == 'main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
- name: Test release
uses: relekang/[email protected]

- name: Python Semantic Test
id: test
uses: python-semantic-release/[email protected]
if: github.ref_name != 'main'
with:
additional_options: --noop
github_token: ${{ secrets.GITHUB_TOKEN }}
root_options: --noop

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
# See https://github.com/actions/runner/issues/1173
if: steps.release.outputs.released == 'true'

- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ pytest-cov = ">=3,<5"

[tool.semantic_release]
branch = "main"
version_toml = "pyproject.toml:tool.poetry.version"
version_variable = "src/aiovodafone/__init__.py:__version__"
version_toml = ["pyproject.toml:tool.poetry.version"]
version_variable = ["src/aiovodafone/__init__.py:__version__"]
build_command = "pip install poetry && poetry build"

[tool.pytest.ini_options]
Expand Down