Skip to content

Commit

Permalink
ci: fixed version pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethEnevoldsen committed Aug 1, 2023
1 parent 68ed93d commit 4af85d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing


if: ${{ github.ref == 'refs/heads/main' && github.event.workflow_run.conclusion == 'success'}}
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -30,15 +32,14 @@ jobs:
github_token: ${{ secrets.PAT }}

- name: Publish package distributions to PyPI
if: ${{ github.ref == 'refs/heads/main' && github.event.workflow_run.conclusion == 'success' && steps.release.outputs.released == 'true' }}
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'
# This action supports PyPI's trusted publishing implementation, which allows authentication to PyPI without a manually
# configured API token or username/password combination. To perform trusted publishing with this action, your project's
# publisher must already be configured on PyPI.


- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
if: ${{ github.ref == 'refs/heads/main' && github.event.workflow_run.conclusion == 'success' && steps.release.outputs.released == 'true' }}
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.PAT }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ max-complexity = 10

[tool.semantic_release]
branch = "main"
version_variable = ["pyproject.toml:version"]
version_toml = ["pyproject.toml:version"]
build_command = "python -m pip install build; python -m build"

[tool.setuptools]
Expand Down

0 comments on commit 4af85d1

Please sign in to comment.