Skip to content

Commit

Permalink
editing goreleaser configs
Browse files Browse the repository at this point in the history
  • Loading branch information
RawanMostafa08 committed Sep 5, 2024
1 parent d311b50 commit 067db6d
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,41 @@ name: goreleaser
on:
push:
tags:
- '*'
- v*


jobs:
goreleaser:
runs-on: ubuntu-latest
main: ./cmd/cat
main: ./cmd/echo
main: ./cmd/env
main: ./cmd/false
main: ./cmd/head
main: ./cmd/tail
main: ./cmd/tree
main: ./cmd/true
main: ./cmd/wc
main: ./cmd/yes
permissions:
contents: write
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: "true"
-
name: Set up Go

- name: Set up Go
uses: actions/setup-go@v5
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
go-version: 1.21

- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
version: latest
args: release --clean
env:
# GitHub sets this automatically
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 067db6d

Please sign in to comment.