Skip to content

Commit 1b409b4

Browse files
committed
fix(release): simplify semantic-release config and remove conflicting steps
1 parent 447dbf2 commit 1b409b4

2 files changed

Lines changed: 1 addition & 34 deletions

File tree

‎.github/workflows/ci-cd.yml‎

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -279,39 +279,13 @@ jobs:
279279
python -m pip install --upgrade pip
280280
pip install python-semantic-release
281281
282-
- name: Semantic Release (dry-run)
283-
env:
284-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
285-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
286-
run: |
287-
git config --global user.name "github-actions[bot]"
288-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
289-
semantic-release --noop publish
290-
291-
- name: Check for existing tags
292-
id: check-tags
293-
run: |
294-
if git describe --tags --abbrev=0 2>/dev/null; then
295-
echo "has_tags=true" >> $GITHUB_OUTPUT
296-
else
297-
echo "has_tags=false" >> $GITHUB_OUTPUT
298-
fi
299-
300-
- name: Create initial tag if none exists
301-
if: steps.check-tags.outputs.has_tags == 'false'
302-
run: |
303-
git config --global user.name "github-actions[bot]"
304-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
305-
git tag v1.1.0
306-
git push origin v1.1.0
307-
308282
- name: Semantic Release
309283
env:
310284
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
311285
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
312286
run: |
313287
git config --global user.name "github-actions[bot]"
314288
git config --global user.email "github-actions[bot]@users.noreply.github.com"
315-
semantic-release publish
289+
semantic-release publish --verbosity=DEBUG
316290
317291
# Finish

‎pyproject.toml‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,3 @@ major_on_zero = false
9393
tag_format = "v{version}"
9494
commit_parser = "angular"
9595

96-
[tool.semantic_release.branches.main]
97-
match = "main"
98-
prerelease = false
99-
100-
[tool.semantic_release.changelog.default_templates]
101-
changelog_file = "CHANGELOG.md"
102-

0 commit comments

Comments
 (0)