Skip to content

Commit

Permalink
fix gorelease
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonah Dissen committed Jul 23, 2023
1 parent b05eeb9 commit 63143db
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
38 changes: 16 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
name: Release

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
goreleaser:
release:
name: Release
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v4
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: "${{ secrets.RELEASE_GITHUB_TOKEN }}"
go-version: 1.20.2

- name: Install goreleaser
run: go install github.com/goreleaser/goreleaser@latest

- name: Run goreleaser
run: |
goreleaser release
env:
GITHUB_TOKEN: "${{ secrets.RELEASE_GITHUB_TOKEN }}"
2 changes: 0 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ builds:
- -buildmode=exe
no_unique_dist_dir: true

gomod:
proxy: true
archives:
- format: tar.gz
name_template: >-
Expand Down

0 comments on commit 63143db

Please sign in to comment.