diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index f3aa6ea..ac5d5c6 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -262,6 +262,9 @@ jobs: if: github.ref == 'refs/heads/main' && github.event_name == 'push' permissions: contents: write + pull-requests: write + issues: write + repository-projects: write steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index d53d437..6f851eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "bash-script-maker" -dynamic = ["version"] +version = "1.1.0" description = "Ein GUI-Programm zur Erstellung von Bash-Scripts mit visueller Unterstützung" readme = "README.md" license = "MIT" @@ -60,8 +60,7 @@ py-modules = ["bash_script_maker", "syntax_highlighter"] include-package-data = true zip-safe = false -[tool.setuptools.dynamic] -version = {file = "VERSION"} + [tool.pytest.ini_options] minversion = "6.0" @@ -84,9 +83,25 @@ exclude_lines = [ ] [tool.semantic_release] -version_variable = "VERSION" +version_toml = ["pyproject.toml:project.version"] upload_to_release = true upload_to_pypi = false branch = "main" changelog_file = "CHANGELOG.md" build_command = "pip install build && python -m build" +major_on_zero = false +tag_format = "v{version}" + +[tool.semantic_release.branches.main] +match = "main" +prerelease = false + +[tool.semantic_release.changelog] +template_dir = "templates" +changelog_file = "CHANGELOG.md" + +[tool.semantic_release.changelog.environment] +block_start_string = "{%" +block_end_string = "%}" +variable_start_string = "{{" +variable_end_string = "}}"