Skip to content

Commit

Permalink
Update and rename go.yml to goreleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza72x authored Apr 23, 2023
1 parent 4655159 commit b375054
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/go.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: goreleaser

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v3
with:
go-version: '>=1.20.1'
cache: true

- uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}

0 comments on commit b375054

Please sign in to comment.