Skip to content

Commit

Permalink
fix: add def for main branch release
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Bertelli committed May 16, 2024
1 parent d54e3e8 commit 15f4feb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ jobs:
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository_username: __token__
repository_password: ${{ secrets.PYPI_TOKEN }}

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ upload_to_pypi = true
build_command = "pip install poetry && poetry build"
preselease = false

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

[tool.semantic_release.branches.dev]
match = "dev"
prerelease = true
Expand Down

0 comments on commit 15f4feb

Please sign in to comment.