Skip to content

Commit

Permalink
feat: added release action
Browse files Browse the repository at this point in the history
  • Loading branch information
WajahatAliAbid committed Sep 20, 2024
1 parent 65be7e9 commit 5b98be3
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release

on:
push:
tags:
- "*"
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.PATH_GITHUB }}
21 changes: 21 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
project_name: zqs
builds:
-
binary: zqs
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- freebsd
- windows
goarch:
- amd64
- arm
- arm64
ignore:
-
goos: windows
goarch: arm64
release:
name_template: "{{.ProjectName}}-v{{.Version}}"

0 comments on commit 5b98be3

Please sign in to comment.