Skip to content

Commit

Permalink
Trying to fix the release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrik Lindahl committed Apr 28, 2023
1 parent 165abc2 commit b3ab1c5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 45 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/go.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/release.yaml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/release_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release Go project

on:
push:
tags:
- "*" # triggers only if push new tag version, like `0.8.4` or else

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

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/

- name: Set up Go 1.20
uses: actions/setup-go@v2
with:
go-version: 1.20.1
id: go

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@master
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b3ab1c5

Please sign in to comment.