Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Nmishin authored Dec 28, 2024
1 parent 163ae4c commit f57a2fa
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ jobs:
with:
# Allow goreleaser to access older tag information.
fetch-depth: 0
- name: Generate Release Notes
run: sed -n -e "1{/# /d;}" -e "2{/^$/d;}" -e "/# $(git describe --abbrev=0 --exclude="$(git describe --abbrev=0 --match='v*.*.*' --tags)" --match='v*.*.*' --tags | tr -d v)/q;p" CHANGELOG.md > release-notes.txt
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: release-notes
path: release-notes.txt
retention-days: 1
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: 'go.mod'
Expand All @@ -43,7 +36,7 @@ jobs:
with:
distribution: goreleaser-pro
version: "~> v2"
args: release --clean -f ${{ vars.GORELEASER_CONFIG_PATH }} --release-notes=release-notes.txt
args: release --clean -f ${{ vars.GORELEASER_CONFIG_PATH }} --release-notes <(sed -n -e "1{/# /d;}" -e "2{/^$/d;}" -e "/# $(git describe --abbrev=0 --exclude="$(git describe --abbrev=0 --match='v*.*.*' --tags)" --match='v*.*.*' --tags | tr -d v)/q;p" CHANGELOG.md)
env:
# GitHub sets the GITHUB_TOKEN secret automatically.
DISABLE_CHANGELOG: ${{ vars.DISABLE_CHANGELOG}}
Expand Down

0 comments on commit f57a2fa

Please sign in to comment.