Skip to content

Commit

Permalink
ci: add goreleaser workflow for release
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
  • Loading branch information
aramase committed Feb 3, 2022
1 parent 7ac887a commit 2f16132
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: create_release
on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
create-release:
runs-on: ubuntu-20.04
steps:
- name: Checkout
# pinning to the sha 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f from https://github.com/actions/checkout/releases/tag/v2.3.4
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
with:
fetch-depth: 0
# pinning to the sha 79d4afbba1b4eff8b9a98e3d2e58c4dbaf094e2b from https://github.com/goreleaser/goreleaser-action/releases/tag/v2.8.1
- name: Goreleaser
uses: goreleaser/goreleaser-action@79d4afbba1b4eff8b9a98e3d2e58c4dbaf094e2b
with:
version: latest
args: release --rm-dist --timeout 60m --debug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 changes: 36 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# refer to https://goreleaser.com for more options
build:
skip: true
release:
prerelease: auto
header: |
## {{.Tag}} - {{ time "2006-01-02" }}
extra_files:
- glob: deploy/*.yaml
changelog:
skip: false
groups:
- title: Bug Fixes 🐞
regexp: ^.*fix[(\\w)]*:+.*$
- title: Build 🏭
regexp: ^.*build[(\\w)]*:+.*$
- title: Code Refactoring 💎
regexp: ^.*refactor[(\\w)]*:+.*$
- title: Code Style 🎶
regexp: ^.*style[(\\w)]*:+.*$
- title: Continuous Integration 💜
regexp: ^.*ci[(\\w)]*:+.*$
- title: Documentation 📘
regexp: ^.*docs[(\\w)]*:+.*$
- title: Features 🌈
regexp: ^.*feat[(\\w)]*:+.*$
- title: Maintenance 🔧
regexp: ^.*chore[(\\w)]*:+.*$
- title: Performance Improvements 🚀
regexp: ^.*perf[(\\w)]*:+.*$
- title: Revert Change ◀️
regexp: ^.*revert[(\\w)]*:+.*$
- title: Security Fix 🛡️
regexp: ^.*security[(\\w)]*:+.*$
- title: Testing 💚
regexp: ^.*test[(\\w)]*:+.*$

0 comments on commit 2f16132

Please sign in to comment.