Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…#566

Signed-off-by: Paul Horton <paul.horton@owasp.org>
  • Loading branch information
madpah committed Mar 7, 2023
1 parent 08b4825 commit bcd15e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,12 @@ jobs:
- name: Install semantic-release
run: pip install python-semantic-release==${{ env.PYTHON_SEMANTIC_RELEASE_VERSION }}

- name: Perform Release
run: semantic-release publish -v DEBUG -D commit_author="github-actions <github-actions@github.com>"
env:
GH_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
REPOSITORY_USERNAME: __token__
REPOSITORY_PASSWORD: ${{ secrets.PYPI_TOKEN }}

# - name: Python Semantic Release
# # see https://python-semantic-release.readthedocs.io/en/latest/automatic-releases/github-actions.html
# # see https://github.com/python-semantic-release/python-semantic-release
# uses: python-semantic-release/python-semantic-release@v7.33.2
# with:
# github_token: ${{ secrets.GH_RELEASE_TOKEN }}
# repository_username: __token__
# repository_password: ${{ secrets.PYPI_TOKEN }}
# pypi_token: ${{ secrets.PYPI_TOKEN }}
- name: Python Semantic Release
# see https://python-semantic-release.readthedocs.io/en/latest/automatic-releases/github-actions.html
# see https://github.com/python-semantic-release/python-semantic-release
uses: python-semantic-release/python-semantic-release@v7.33.2
with:
github_token: ${{ secrets.GH_RELEASE_TOKEN }}
repository_username: __token__
repository_password: ${{ secrets.PYPI_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ version_variable = [
branch = "main"
upload_to_pypi = true
upload_to_release = true
build_command = "poetry build"
build_command = "pip install poetry==1.1.12 && poetry build"

0 comments on commit bcd15e2

Please sign in to comment.