Skip to content

Commit 23cae0b

Browse files
committed
chore: bootstrap the first ci/cd pipelines
1 parent 9c4f994 commit 23cae0b

File tree

3 files changed

+160
-0
lines changed

3 files changed

+160
-0
lines changed

.github/release-drafter.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
version-template: '$MAJOR.$MINOR.$PATCH'
4+
version-resolver:
5+
major:
6+
labels:
7+
- 'major'
8+
- 'breaking'
9+
minor:
10+
labels:
11+
- 'minor'
12+
- 'enhancement'
13+
- 'feature'
14+
- 'feat'
15+
patch:
16+
labels:
17+
- 'patch'
18+
- 'fix'
19+
- 'bugfix'
20+
- 'bug'
21+
- 'hotfix'
22+
default: 'minor'
23+
24+
categories:
25+
- title: '⚠️ BREAKING CHANGES'
26+
labels:
27+
- 'breaking'
28+
- title: '🚀 Features'
29+
labels:
30+
- 'feat'
31+
- 'feature'
32+
- 'enhancement'
33+
- title: '🐞 Bug Fixes'
34+
labels:
35+
- 'fix'
36+
- 'bugfix'
37+
- 'bug'
38+
- 'hotfix'
39+
- title: '🧪 Tests'
40+
label: 'test'
41+
- title: '👗 Style'
42+
labels:
43+
- 'style'
44+
- 'refactor'
45+
- title: "🧰 Maintenance"
46+
label: "chore"
47+
- title: "📝 Documentation"
48+
labels:
49+
- 'docs'
50+
- 'documentation'
51+
52+
change-template: |
53+
<details>
54+
<summary>$TITLE @$AUTHOR (#$NUMBER)</summary>
55+
56+
$BODY
57+
</details>
58+
59+
template: |
60+
## 🔥 Highlights
61+
62+
Cardano Validator Watcher `$RESOLVED_VERSION` is a feature|patch release.
63+
Users are encouraged to upgrade for the best experience.
64+
65+
$CHANGES
66+
67+
autolabeler:
68+
- label: 'breaking'
69+
title:
70+
- '/!:/i'
71+
- label: 'chore'
72+
title:
73+
- '/^chore/i'
74+
- label: 'fix'
75+
title:
76+
- '/^fix/i'
77+
- label: 'feature'
78+
title:
79+
- '/^feat/i'
80+
- label: 'documentation'
81+
title:
82+
- '/^docs/i'
83+
- label: 'test'
84+
title:
85+
- '/^test/i'
86+
- label: 'style'
87+
title:
88+
- '/^style/i'
89+
- '/^refactor/i'
90+
- label: 'release'
91+
title:
92+
- '/^release/i'
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Generate Release Notes
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
release-notes:
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
fetch-tags: true
26+
- uses: release-drafter/release-drafter@v6
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
permissions:
9+
contents: write
10+
packages: write
11+
12+
jobs:
13+
goreleaser:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
fetch-tags: true
21+
- name: Set up QEMU
22+
uses: docker/setup-qemu-action@v3
23+
- name: Login to GitHub Container Registry
24+
uses: docker/login-action@v3
25+
with:
26+
registry: ghcr.io
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
- name: Set up Go
30+
uses: actions/setup-go@v5
31+
with:
32+
go-version: 1.22
33+
- name: Run GoReleaser
34+
uses: goreleaser/goreleaser-action@v6
35+
with:
36+
distribution: goreleaser
37+
version: '~> v2'
38+
args: release --clean
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)