Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ updates:
interval: "weekly"
labels:
- "dependencies"
commit-message:
prefix: "build(deps)"

# Maintain GitHub Actions in your workflows
- package-ecosystem: "github-actions"
Expand All @@ -18,5 +16,3 @@ updates:
labels:
- "dependencies"
- "ci"
commit-message:
prefix: "ci(github-actions)"
65 changes: 32 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,42 @@
name: Release

on:
push:
tags:
- "v*"
push:
tags:
- "v*"

permissions:
contents: write
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.25"
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.25"

- name: Generate Release Notes
uses: orhun/git-cliff-action@v4
with:
config: cliff.toml
args: --latest --strip header
env:
OUTPUT: ${{ runner.temp }}/release-notes.md
GITHUB_REPO: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate Release Notes
uses: orhun/git-cliff-action@v4
with:
config: cliff.toml
args: --latest --strip header --github-repo ${{ github.repository }}
env:
OUTPUT: ${{ runner.temp }}/release-notes.md
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser
version: "~> v2"
args: release --clean --release-notes=${{ runner.temp }}/release-notes.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser
version: "~> v2"
args: release --clean --release-notes=${{ runner.temp }}/release-notes.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
29 changes: 16 additions & 13 deletions cliff.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[remote.github]
owner = "DylanDevelops"
repo = "tmpo"

[changelog]
body = """
## What's Changed
Expand All @@ -6,13 +10,13 @@ body = """
### {{ group | striptags | trim }}
{% for commit in commits -%}
{% set commit_title = commit.message | split(pat="\\n") | first -%}
{% if commit.remote.pr_number -%}
{% set pr_str = " (#" ~ commit.remote.pr_number ~ ")" -%}
{% if commit.github.pr_number -%}
{% set pr_str = " (#" ~ commit.github.pr_number ~ ")" -%}
{% set commit_title = commit_title | replace(from=pr_str, to="") -%}
{% endif -%}
- {% if commit.breaking %}[breaking] {% endif %}{{ commit_title | upper_first }}\
{% if commit.remote.username %} by @{{ commit.remote.username }}{% endif %}\
{% if commit.remote.pr_number %} in [#{{ commit.remote.pr_number }}](https://github.com/DylanDevelops/tmpo/pull/{{ commit.remote.pr_number }}){% endif %}
{% if commit.github.username %} by @{{ commit.github.username }}{% endif %}\
{% if commit.github.pr_number %} in [#{{ commit.github.pr_number }}](https://github.com/DylanDevelops/tmpo/pull/{{ commit.github.pr_number }}){% endif %}
{% endfor %}

{% endfor %}
Expand All @@ -24,7 +28,6 @@ body = """
{% endfor %}
{% endif %}


{% if previous.version %}
**Full Changelog**: https://github.com/DylanDevelops/tmpo/compare/{{ previous.version }}...{{ version }}
{% else %}
Expand All @@ -38,12 +41,12 @@ conventional_commits = true
filter_unconventional = true
filter_commits = true
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->✨ Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^perf", group = "<!-- 2 -->🚀 Performance Improvements" },
{ message = "^refactor", group = "<!-- 3 -->🛠️ Refactoring" },
{ message = "^docs?", group = "<!-- 4 -->📚 Documentation" },
{ message = "^(build|ci)", group = "<!-- 5 -->🔧 Build & Dependencies" },
{ message = "^chore", group = "<!-- 6 -->🧹 Maintenance" },
{ message = "^Merge ", skip = true },
{ message = "^feat", group = "<!-- 0 -->✨ Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^perf", group = "<!-- 2 -->🚀 Performance Improvements" },
{ message = "^refactor", group = "<!-- 3 -->🛠️ Refactoring" },
{ message = "^docs?", group = "<!-- 4 -->📚 Documentation" },
{ message = "^(build|ci)", group = "<!-- 5 -->🔧 Build & Dependencies" },
{ message = "^chore", group = "<!-- 6 -->🧹 Maintenance" },
{ message = "^Merge ", skip = true },
]
Loading