Skip to content

Commit

Permalink
adjusted goreleaser workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NodyHub committed Aug 12, 2024
1 parent 12a8110 commit a131165
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
name: release
# .github/workflows/release.yml
name: goreleaser

on:
release:
types: [ published ]


permissions:
contents: write

jobs:
release:
name: Release
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Setup go 1.21
uses: actions/setup-go@v4.1.0
with: { go-version: '1.21' }

- name: Checkout code
uses: actions/checkout@v3.5.3

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4.4.0
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 0 additions & 4 deletions .goreleaser.yaml

This file was deleted.

0 comments on commit a131165

Please sign in to comment.