mirror of
				https://gitea.com/gitea/gitea-mcp.git
				synced 2025-11-04 04:11:50 +00:00 
			
		
		
		
	build: enhance build process and release configuration
- Add build flags and ldflags for Go builds - Add Gitea URLs and force token configuration for release Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
		@@ -14,6 +14,11 @@ builds:
 | 
			
		||||
      - linux
 | 
			
		||||
      - windows
 | 
			
		||||
      - darwin
 | 
			
		||||
    flags:
 | 
			
		||||
      - -trimpath
 | 
			
		||||
    ldflags:
 | 
			
		||||
      - -s -w
 | 
			
		||||
      - -X main.version={{.Version}}
 | 
			
		||||
 | 
			
		||||
archives:
 | 
			
		||||
  - formats: tar.gz
 | 
			
		||||
@@ -64,3 +69,8 @@ release:
 | 
			
		||||
    ---
 | 
			
		||||
 | 
			
		||||
    Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
 | 
			
		||||
 | 
			
		||||
gitea_urls:
 | 
			
		||||
  api: https://gitea.com/api/v1
 | 
			
		||||
  download: https://gitea.com
 | 
			
		||||
force_token: gitea
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user