mirror of
https://github.com/pressly/goose.git
synced 2025-05-31 11:42:04 +00:00
chore: cleanup GH goreleaser file
This commit is contained in:
parent
6b47f706d6
commit
a20c666ca6
14
.github/workflows/release.yaml
vendored
14
.github/workflows/release.yaml
vendored
@ -1,13 +1,10 @@
|
||||
name: goreleaser
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
goreleaser:
|
||||
runs-on: ubuntu-latest
|
||||
@ -19,21 +16,14 @@ jobs:
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: stable
|
||||
# More assembly might be required: Docker logins, GPG, etc. It all depends
|
||||
# on your needs.
|
||||
# ${{ github.ref_name }} or $GITHUB_REF_NAME or ${{env.GITHUB_REF_NAME}} currently.
|
||||
- name: Generate release notes
|
||||
continue-on-error: true
|
||||
run: ./scripts/release-notes.sh ${{github.ref_name}} > ./release_notes.txt
|
||||
run: ./scripts/release-notes.sh ${{github.ref_name}} > ${{runner.temp}}/release_notes.txt
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v4
|
||||
with:
|
||||
# either 'goreleaser' (default) or 'goreleaser-pro':
|
||||
distribution: goreleaser
|
||||
version: latest
|
||||
args: release --clean --release-notes=./release_notes.txt
|
||||
args: release --clean --release-notes=${{runner.temp}}/release_notes.txt
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro'
|
||||
# distribution:
|
||||
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user