Skip to content

Commit

Permalink
updated release
Browse files Browse the repository at this point in the history
  • Loading branch information
pcpratheesh committed Jul 24, 2023
1 parent ad0d494 commit 0616022
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,26 @@ name: Create Release

on:
push:
branches: [main]
tags:
- 'v*'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}


jobs:
goreleaser:
build:
runs-on: ubuntu-latest

steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
- name: Checkout code
uses: actions/checkout@v2

- name: Create Release
uses: actions/create-release@v1
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}

draft: false
prerelease: false

0 comments on commit 0616022

Please sign in to comment.