Skip to content

Commit

Permalink
Update goreleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aydinnyunus authored Aug 9, 2024
1 parent 0113452 commit ad6990a
Showing 1 changed file with 15 additions and 22 deletions.
37 changes: 15 additions & 22 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,34 @@
# .github/workflows/release.yml
name: goreleaser

on:
pull_request:
push:
# run only against tags
tags:
- "*"

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

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v4
-
name: Set up Go
uses: actions/setup-go@v5
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
go-version: stable
workdir: ./cmd/wallet-tracker/
# More assembly might be required: Docker logins, GPG, etc.
# It all depends on your needs.
- uses: goreleaser/goreleaser-action@v5
with:
# either 'goreleaser' (default) or 'goreleaser-pro':
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
# 'latest', 'nightly', or a semver
version: '~> v2'
args: release --clean
workdir: ./cmd/wallet-tracker/
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
MAIN: ./cmd/wallet-tracker/main.go
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro'
# distribution:
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}t
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

0 comments on commit ad6990a

Please sign in to comment.