Skip to content

Commit 9b383ad

Browse files
committed
chore: bump version to 1.0.3 with integrated release workflow
1 parent a925167 commit 9b383ad

File tree

3 files changed

+26
-37
lines changed

3 files changed

+26
-37
lines changed

.github/workflows/git-cliff.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,30 @@ jobs:
8989
git tag -a "v$VERSION" -m "Release v$VERSION"
9090
git push origin "v$VERSION"
9191
92-
- name: Trigger Release Workflow
92+
- name: Check for cliff.toml
9393
if: steps.check.outputs.exists == 'false'
94+
id: check-cliff
9495
run: |
95-
gh workflow run git-cliff.yml
96+
if [ -f .github/cliff.toml ]; then
97+
echo "has_cliff=true" >> $GITHUB_OUTPUT
98+
else
99+
echo "has_cliff=false" >> $GITHUB_OUTPUT
100+
fi
101+
102+
- name: Generate Changelog
103+
if: steps.check.outputs.exists == 'false' && steps.check-cliff.outputs.has_cliff == 'true'
104+
id: git-cliff
105+
uses: orhun/git-cliff-action@v4
106+
with:
107+
config: .github/cliff.toml
108+
args: --latest
109+
env:
110+
OUTPUT: CHANGELOG.md
111+
GITHUB_REPO: ${{ github.repository }}
112+
113+
- name: Create GitHub Release
114+
if: steps.check.outputs.exists == 'false' && steps.check-cliff.outputs.has_cliff == 'true'
115+
uses: softprops/action-gh-release@v2
116+
with:
117+
tag_name: v${{ steps.check.outputs.version }}
118+
body: ${{ steps.git-cliff.outputs.content }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "namecheap-python"
3-
version = "1.0.2"
3+
version = "1.0.3"
44
description = "A friendly Python SDK for Namecheap API"
55
authors = [{name = "Adrian Galilea Delgado", email = "adriangalilea@gmail.com"}]
66
readme = "README.md"

0 commit comments

Comments
 (0)