Skip to content

Commit

Permalink
fix: Another attempt to fix workflows/CI-CD.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrod committed Sep 11, 2024
1 parent fdc518c commit 386be8e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,19 @@ jobs:

# Set up operating system
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.release.outputs.tag }}
released: ${{ steps.release.outputs.released }}

# Define job steps
steps:
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Check-out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
submodules: recursive

- name: Use Python Semantic Release to prepare release
id: release
uses: python-semantic-release/[email protected]
Expand Down
23 changes: 21 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,30 @@ python-semantic-release = ">=9.0.3"
ruff = ">=0.0.47"

[tool.semantic_release]
version_variable = "pyproject.toml:version"
commit_parser = "angular"
logging_use_named_masks = true
allow_zero_version = true
tag_format = "v{version}"
version_variables = ["pyproject.toml:version"]

commit_message = "chore(release): {version}\n\nAutomatically generated by python-semantic-release"

branch= "main" # branch to make releases of
changelog_file = "CHANGELOG.md" # changelog file
build_command = "pip install poetry && poetry build" # build dists

[tool.semantic_release.changelog]

changelog_file = "CHANGELOG.md" # changelog file
exclude_commit_patterns = [".*\\n\\nAutomatically generated by python-semantic-release", "chore: pre-commit autoupdate\n\nAutomatically generated by pre-commit.ci"]

[tool.semantic_release.commit_parser_options]
allowed_types = [
"build", "chore", "ci", "docs", "feat", "fix",
"perf", "style", "refactor", "test", "book",
]
minor_types = ["feat"]
patch_types = ["fix", "perf"]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Expand Down

0 comments on commit 386be8e

Please sign in to comment.