-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add goreleaser workflow for release
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)]*:+.*$ |