Skip to content

Commit 466b1c1

Browse files
chore(CHANGELOG.md): update
1 parent 7be7e9e commit 466b1c1

File tree

5 files changed

+50
-28
lines changed

5 files changed

+50
-28
lines changed

.cliffignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22

33
e8759bdeb573cd9304d1fb6e0501906ea9cb865a
44
32e8972a53899a022ab56f9eaed2b5e0d621bbdb
5+
a69848578e1e730504fb322530e1351077aada24
6+
e6d5d4b172580dc13bdc44e3f4c78cfbcc1390d4
7+
a159e02a99260b5df1500f21c78295edf922f0ee
8+
7be7e9e56e7404d09753aa224cece00b148c25f6

.github/workflows/cd.yml

Lines changed: 32 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,18 @@
11
---
22
name: CD
33
on:
4+
workflow_dispatch: # Allows manual triggering of the workflow
45
push:
56
tags:
67
- "*" # Will trigger for every tag, alternative: 'v*'
78
jobs:
8-
changelog:
9-
name: Generate changelog
9+
build:
1010
runs-on: ubuntu-latest
11-
outputs:
12-
release_body: ${{ steps.git-cliff.outputs.content }}
1311
steps:
1412
- name: Checkout repository
1513
uses: actions/checkout@v4
1614
with:
1715
fetch-depth: 0
18-
- name: Generate a changelog
19-
uses: orhun/git-cliff-action@v4
20-
id: git-cliff
21-
with:
22-
args: --latest --no-exec --strip header
23-
env:
24-
OUTPUT: CHANGELOG.md
25-
GITHUB_REPO: ${{ github.repository }}
26-
build:
27-
runs-on: ubuntu-latest
28-
needs: changelog
29-
steps:
30-
- name: Checkout repository
31-
uses: actions/checkout@v4
3216
- name: Set up Python
3317
uses: actions/setup-python@v5
3418
with:
@@ -41,11 +25,21 @@ jobs:
4125
- name: Restore cache
4226
if: steps.setup-uv.outputs.cache-hit == 'true'
4327
run: echo "Cache was restored"
28+
- name: Generate Changelog
29+
run: |
30+
uvx git-cliff --latest --no-exec --strip all --github-repo ${{ github.repository }} > RELEASE_BODY.md
31+
uvx git-cliff --github-repo ${{ github.repository }} > CHANGELOG.md
32+
- name: Upload Release Body
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: release_body
36+
path: RELEASE_BODY.md
4437
- name: Build the Package
4538
run: uv build --no-sources --quiet
4639
- name: Upload Artifacts
4740
uses: actions/upload-artifact@v4.6.2
4841
with:
42+
name: dist
4943
path: ./dist
5044
release:
5145
needs: build
@@ -54,14 +48,26 @@ jobs:
5448
contents: write # IMPORTANT: Mandatory for GitHub Release (action-gh-release)
5549
discussions: write # IMPORTANT: Mandatory for Discussions (action-gh-release)
5650
steps:
51+
- name: Download Release Body
52+
uses: actions/download-artifact@v4
53+
with:
54+
name: release_body
55+
path: .
56+
- name: Let's see the Release Body
57+
run: cat ./RELEASE_BODY.md
5758
- name: Download Artifacts
58-
uses: actions/download-artifact@v4.3.0
59+
uses: actions/download-artifact@v4
60+
with:
61+
name: dist
62+
path: ./dist
63+
- name: Let's see the Release Artifacts
64+
run: ls ./dist
5965
- name: Create GitHub Release
6066
uses: softprops/action-gh-release@v2.3.2
6167
if: github.ref_type == 'tag'
6268
with:
63-
files: artifacts/
64-
body: ${{ needs.changelog.outputs.release_body }}
69+
files: ./dist/*
70+
body_path: ./RELEASE_BODY.md
6571
discussion_category_name: Announcements
6672
publish-pypi:
6773
needs: release
@@ -73,9 +79,10 @@ jobs:
7379
name: publish
7480
url: https://pypi.org/project/micoo/${{ github.ref_name }}
7581
steps:
76-
- name: Download Artifacts
77-
uses: actions/download-artifact@v4.3.0
82+
- name: Download artifacts
83+
uses: actions/download-artifact@v4
84+
with:
85+
name: dist
86+
path: ./dist
7887
- name: Publish to PyPI
7988
uses: pypa/gh-action-pypi-publish@v1.12.4
80-
with:
81-
packages-dir: artifact/

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
<!-- changelog-start -->
99

10-
## [Unreleased]
10+
## [0.2.0] - 2025-07-27
1111

1212
### Changed
1313

14+
- Git-cliff integration by @hasansezertasan in [#6](https://github.com/hasansezertasan/micoo/pull/6)
1415
- Implement dynamic arguments and pin python version to 3.9 by @hasansezertasan in [#4](https://github.com/hasansezertasan/micoo/pull/4)
1516
- Generate release notes and discussions on gh-release, adjust permissions, bump setup-uv version by @hasansezertasan in [#3](https://github.com/hasansezertasan/micoo/pull/3)
1617

@@ -34,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3435
- @hasansezertasan made their first contribution
3536

3637
<!-- refs -->
37-
[unreleased]: https://github.com/hasansezertasan/micoo/compare/0.1.0..HEAD
38+
[0.1.0]: https://github.com/hasansezertasan/micoo/tree/0.1.0
39+
[0.2.0]: https://github.com/hasansezertasan/micoo/compare/0.1.0..0.2.0
3840

3941
<!-- changelog-end -->

cliff.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ body = """
5050
# A Tera template to be rendered as the changelog's footer.
5151
# See https://keats.github.io/tera/docs/#introduction
5252
footer = """
53-
{{ "\n" }}<!-- refs -->{{ "\n" }}
53+
{{ "\n" }}<!-- refs -->
54+
[0.1.0]: https://github.com/hasansezertasan/micoo/tree/0.1.0{{ "\n" }}
5455
{%- macro remote_url() -%}
5556
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
5657
{%- endmacro -%}

mise.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[tools]
2+
changie = "latest"
3+
committed = "latest"
4+
git-cliff = "latest"
5+
gitversion = "latest"
6+
goreleaser = "latest"
7+
"pipx:commitizen" = "latest"
8+
"ubi:rhysd/changelog-from-release" = "latest"

0 commit comments

Comments
 (0)