Skip to content

Commit

Permalink
chore: implement pypi publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nr18 committed Mar 4, 2024
1 parent 9c75039 commit de39102
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 39 deletions.
2 changes: 0 additions & 2 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ types:
- build
- ci
- chore
- revert
- improv

# Always validate the PR title
# and ignore the commits to lower the entry bar for contribution
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository_username: __token__
repository_password: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
39 changes: 2 additions & 37 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,46 +31,11 @@ version_variables = [
"pull_request_codecommit/__init__.py:__version__",
"pyproject.toml:version"
]
upload_to_pypi = true
upload_to_release = true

[tool.semantic_release.publish]
upload_to_vcs_release = true

[tool.semantic_release.commit_author]
env = "GIT_COMMIT_AUTHOR"
default = "semantic-release <semantic-release>"

[tool.semantic_release.commit_parser_options]
allowed_tags = [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"style",
"refactor",
"test",
]
allowed_tags = [ "build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test" ]
minor_tags = ["feat"]
patch_tags = [
"build",
"chore",
"ci",
"docs",
"fix",
"perf",
"style",
"refactor",
"test",
]

[tool.semantic_release.remote]
name = "origin"
type = "github"
ignore_token_for_push = false
patch_tags = [ "chore", "docs", "fix", "perf", "style", "refactor", "test" ]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit de39102

Please sign in to comment.