From e671453afe8c7f260e5513d55de21612869754c2 Mon Sep 17 00:00:00 2001 From: sapcc-bot Date: Wed, 11 Oct 2023 14:23:51 +0000 Subject: [PATCH] Run go-makefile-maker --- .github/workflows/goreleaser.yaml | 6 ++++-- Makefile | 4 ---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index 9bb7b72b..8fd39d39 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -9,7 +9,7 @@ name: goreleaser tags: - v[0-9]+.[0-9]+.[0-9]+ permissions: - contents: write + contents: read packages: write jobs: release: @@ -26,7 +26,9 @@ jobs: check-latest: true go-version: "1.21" - name: Generate release info - run: make build/release-info + run: | + go install github.com/sapcc/go-bits/tools/release-info@latest + release-info CHANGELOG.md $(shell git describe --tags --abbrev=0) > build/release-info - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: diff --git a/Makefile b/Makefile index b8bfc758..0d392934 100644 --- a/Makefile +++ b/Makefile @@ -14,10 +14,6 @@ endif default: build-all -build/release-info: CHANGELOG.md | build - @if ! hash release-info 2>/dev/null; then printf "\e[1;36m>> Installing release-info...\e[0m\n"; go install github.com/sapcc/go-bits/tools/release-info@latest; fi - release-info $< $(shell git describe --tags --abbrev=0) > $@ - GO_BUILDFLAGS = -mod vendor GO_LDFLAGS = GO_TESTENV =