Skip to content

Commit

Permalink
chore: add built command
Browse files Browse the repository at this point in the history
  • Loading branch information
Nr18 committed Mar 4, 2024
1 parent 19f0492 commit 67a4ca4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
needs: Quality
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'chore(release):')
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pull-request-codecommit
permissions:
id-token: write
contents: write
Expand All @@ -51,10 +54,9 @@ jobs:
fetch-depth: 0
- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository_username: __token__
repository_password: ${{ secrets.PYPI_API_TOKEN }}
# with:
# # We are using a GH_TOKEN from the organization
# github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pull-request-codecommit = "pull_request_codecommit:main"
git-pr = "pull_request_codecommit:main"

[tool.semantic_release]
build_command = "pip install poetry && poetry build"
version_variables = [
"pull_request_codecommit/__init__.py:__version__",
"pyproject.toml:version"
Expand Down

0 comments on commit 67a4ca4

Please sign in to comment.