Skip to content

Commit

Permalink
✨ fix: release
Browse files Browse the repository at this point in the history
  • Loading branch information
SlashGordon committed Nov 15, 2023
1 parent 814ff06 commit 12f6fb5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,20 @@ jobs:
parallel: true
debug: true
- name: Python Semantic Release
uses: relekang/python-semantic-release@v8.3.0
id: release
uses: python-semantic-release/python-semantic-release@v8.3.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'
with:
password: ${{ secrets.PYPI_TOKEN_PP }}
- 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 }}
pypi_token: ${{ secrets.PYPI_TOKEN_PP }}
coveralls_finish:
needs: release
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ version_variable = [
branch = "master"
upload_to_pypi = true
upload_to_release = true
build_command = "pip install poetry && poetry publish --build"
build_command = "pip install poetry && poetry build"

[tool.pytest.ini_options]
addopts = "tests/ --junitxml test-results/test.xml --cov src/pysymbolscanner --cov-report term-missing"
Expand Down

0 comments on commit 12f6fb5

Please sign in to comment.