different release action

This commit is contained in:
Dagen Brock 2022-01-02 17:21:52 -06:00
parent a0c430b438
commit 05b14913ab
1 changed files with 18 additions and 23 deletions

View File

@ -1,30 +1,25 @@
name: goreleaser
name: Publish Release
on:
pull_request:
push:
# tags:
# - 'v*'
jobs:
goreleaser:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.5
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.5
- name: Create a Release
uses: elgohr/Github-Release-Action@master
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
args: MyReleaseMessage