Skip to content

Commit

Permalink
ci: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
Ugochukwu Onyebuchi committed Mar 24, 2023
1 parent 067d906 commit 25d31a0
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,31 @@ name: goreleaser

on:
push:
# run only against tags
tags:
- '*'

permissions:
contents: write
# packages: write
# issues: write

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

steps:
- name: Check out code into the Go module directory
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags

- name: Setup gO 1.20.2
uses: actions/setup-go@v4

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.2
go-version: '^1.20.2'
id: go

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
Expand Down

0 comments on commit 25d31a0

Please sign in to comment.