diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml deleted file mode 100644 index 10eb88b..0000000 --- a/.github/workflows/python-publish.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Publish Python Package to PyPi - -on: workflow_dispatch - -jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Install poetry - run: | - pipx install poetry - - - name: Set up Python 3.x - uses: actions/setup-python@v4 - with: - python-version: "3.x" - cache: 'poetry' - - - name: Install dependencies - run: | - poetry check - poetry lock --no-update - poetry install --verbose - - - name: Build and publish - env: - PYPI_USERNAME: __token__ - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml index 194adef..161d7a7 100644 --- a/.github/workflows/python-release.yml +++ b/.github/workflows/python-release.yml @@ -53,7 +53,7 @@ jobs: git config --global tag.gpgSign true poetry run semantic-release version --major --no-commit poetry run semantic-release publish - poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD + poetry publish -vvv --username $PYPI_USERNAME --password $PYPI_PASSWORD env: GH_TOKEN: ${{secrets.GITHUB_TOKEN}} PYPI_USERNAME: __token__ @@ -70,7 +70,7 @@ jobs: git config --global tag.gpgSign true poetry run semantic-release version --no-commit poetry run semantic-release publish - poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD + poetry publish -vvv --username $PYPI_USERNAME --password $PYPI_PASSWORD env: GH_TOKEN: ${{secrets.GITHUB_TOKEN}} PYPI_USERNAME: __token__ diff --git a/pyproject.toml b/pyproject.toml index 468e937..0b2bb54 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -155,7 +155,6 @@ ignore_token_for_push = false [tool.semantic_release.remote.token] env = "GH_TOKEN" - [tool.semantic_release.publish] dist_glob_patterns = ["dist/*"] upload_to_vcs_release = true diff --git a/templates/.release_notes.md.j2 b/templates/.release_notes.md.j2 new file mode 100644 index 0000000..864109a --- /dev/null +++ b/templates/.release_notes.md.j2 @@ -0,0 +1,25 @@ +## Changes + +## 🚀 Features + +{% for type_, commits in release["elements"] | dictsort %} +{%- if type_ == "feature" %} +{% for commit in commits %} +* ({{type_}}):{{ commit.descriptions[0] }} by {{commit.commit.author.name}} in [`{{ commit.short_hash }}`] +{%- endfor %}{% endif %}{% endfor %} + +## 🐛 Bug Fixes + +{% for type_, commits in release["elements"] | dictsort %} +{%- if type_ == "fix" %} +{% for commit in commits %} +* ({{type_}}):{{ commit.descriptions[0] }} by {{commit.commit.author.name}} in [`{{ commit.short_hash }}`] +{%- endfor %}{% endif %}{% endfor %} + +## 🧰 Maintenance + +{% for type_, commits in release["elements"] | dictsort %} +{%- if type_ in ["chore", "ci", "documentation", "refactor", "test"] %} +{% for commit in commits %} +* ({{type_}}):{{ commit.descriptions[0] }} by {{commit.commit.author.name}} in [`{{ commit.short_hash }}`] +{%- endfor %}{% endif %}{% endfor %}