From 7f335a2b9c8e12cf74203645893d014a5a01d03c Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 13 Apr 2023 22:54:46 +0800 Subject: [PATCH 1/2] Update '.gitea/workflows/release-tag.yml' (#541) Reviewed-on: https://gitea.com/gitea/tea/pulls/541 Reviewed-by: techknowlogick Co-authored-by: Lunny Xiao Co-committed-by: Lunny Xiao --- .gitea/workflows/release-tag.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release-tag.yml b/.gitea/workflows/release-tag.yml index e9920b8..7e640e5 100644 --- a/.gitea/workflows/release-tag.yml +++ b/.gitea/workflows/release-tag.yml @@ -1,6 +1,9 @@ name: goreleaser -on: [tags] +on: + push: + tags: + - '*' jobs: goreleaser: @@ -20,6 +23,7 @@ jobs: with: gpg_private_key: ${{ secrets.GPGSIGN_KEY }} passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }} + fingerprint: CC64B1DB67ABBEECAB24B6455FC346329753F4B0 - name: goreleaser uses: https://github.com/goreleaser/goreleaser-action@v4 with: @@ -33,7 +37,7 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} S3_REGION: ${{ secrets.AWS_REGION }} S3_BUCKET: ${{ secrets.AWS_BUCKET }} + GORELEASER_FORCE_TOKEN: 'gitea' GPGSIGN_PASSPHRASE: ${{ secrets.GPGSIGN_PASSPHRASE }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }} - GITHUB_TOKEN: From d9da952e96df7df9b7af713683f1e163e4dd3d56 Mon Sep 17 00:00:00 2001 From: ASDFGamer Date: Tue, 18 Apr 2023 05:08:50 +0800 Subject: [PATCH 2/2] Output full path to go bin directory during installation (#544) This fixed a Bug, that a wrong directory could be written to shell via @echo, when the env var GOPATH isn't set. Co-authored-by: Christoph Wildhagen Reviewed-on: https://gitea.com/gitea/tea/pulls/544 Reviewed-by: John Olheiser Reviewed-by: techknowlogick Co-authored-by: ASDFGamer Co-committed-by: ASDFGamer --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 69960fb..58ce385 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,7 @@ check: test .PHONY: install install: $(SOURCES) - @echo "installing to $(GOPATH)/bin/$(EXECUTABLE)" + @echo "installing to $(shell $(GO) env GOPATH)/bin/$(EXECUTABLE)" $(GO) install -v $(BUILDMODE) $(GOFLAGS) .PHONY: build