Skip to content

Commit

Permalink
chore: bootstrap the first ci/cd pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayane Bellazaar committed Nov 21, 2024
1 parent 9c4f994 commit 23cae0b
Show file tree
Hide file tree
Showing 3 changed files with 160 additions and 0 deletions.
92 changes: 92 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
version-template: '$MAJOR.$MINOR.$PATCH'
version-resolver:
major:
labels:
- 'major'
- 'breaking'
minor:
labels:
- 'minor'
- 'enhancement'
- 'feature'
- 'feat'
patch:
labels:
- 'patch'
- 'fix'
- 'bugfix'
- 'bug'
- 'hotfix'
default: 'minor'

categories:
- title: '⚠️ BREAKING CHANGES'
labels:
- 'breaking'
- title: '🚀 Features'
labels:
- 'feat'
- 'feature'
- 'enhancement'
- title: '🐞 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- 'hotfix'
- title: '🧪 Tests'
label: 'test'
- title: '👗 Style'
labels:
- 'style'
- 'refactor'
- title: "🧰 Maintenance"
label: "chore"
- title: "📝 Documentation"
labels:
- 'docs'
- 'documentation'

change-template: |
<details>
<summary>$TITLE @$AUTHOR (#$NUMBER)</summary>
$BODY
</details>
template: |
## 🔥 Highlights
Cardano Validator Watcher `$RESOLVED_VERSION` is a feature|patch release.
Users are encouraged to upgrade for the best experience.
$CHANGES
autolabeler:
- label: 'breaking'
title:
- '/!:/i'
- label: 'chore'
title:
- '/^chore/i'
- label: 'fix'
title:
- '/^fix/i'
- label: 'feature'
title:
- '/^feat/i'
- label: 'documentation'
title:
- '/^docs/i'
- label: 'test'
title:
- '/^test/i'
- label: 'style'
title:
- '/^style/i'
- '/^refactor/i'
- label: 'release'
title:
- '/^release/i'
28 changes: 28 additions & 0 deletions .github/workflows/release-notes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Generate Release Notes

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: read

jobs:
release-notes:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40 changes: 40 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
push:
tags:
- '*'

permissions:
contents: write
packages: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 23cae0b

Please sign in to comment.