|
1 | 1 | version: 2 |
2 | 2 |
|
3 | 3 | before: |
4 | | - hooks: |
5 | | - # If you have tests, uncomment: |
6 | | - - go test ./... |
7 | | - - echo "Starting GoReleaser..." |
| 4 | + hooks: |
| 5 | + # If you have tests, uncomment: |
| 6 | + - go test ./... |
| 7 | + - echo "Starting GoReleaser..." |
8 | 8 |
|
9 | 9 | builds: |
10 | | - - id: filefusion |
11 | | - # If your main.go is in the root folder, use "." or "./". |
12 | | - main: ./cmd/filefusion/main.go |
13 | | - # The base output filename (GoReleaser adds .exe for Windows). |
14 | | - binary: filefusion |
15 | | - # Target OS/Arch combos: |
16 | | - goos: |
17 | | - - linux |
18 | | - - darwin |
19 | | - - windows |
20 | | - goarch: |
21 | | - - amd64 |
22 | | - - arm64 |
23 | | - # Disable CGO if not needed: |
24 | | - env: |
25 | | - - CGO_ENABLED=0 |
| 10 | + - id: filefusion |
| 11 | + # If your main.go is in the root folder, use "." or "./". |
| 12 | + main: ./cmd/filefusion/main.go |
| 13 | + # The base output filename (GoReleaser adds .exe for Windows). |
| 14 | + binary: filefusion |
| 15 | + # Target OS/Arch combos: |
| 16 | + goos: |
| 17 | + - linux |
| 18 | + - darwin |
| 19 | + - windows |
| 20 | + goarch: |
| 21 | + - amd64 |
| 22 | + - arm64 |
| 23 | + env: |
| 24 | + - CGO_ENABLED=1 |
| 25 | + flags: |
| 26 | + - -tags=bash cpp csharp golang css html java php kotlin javascript ruby python swift typescript sql |
26 | 27 |
|
27 | 28 | archives: |
28 | | - - id: filefusion-archive |
29 | | - # Name format for each archive |
30 | | - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' |
31 | | - # Linux & macOS get tar.gz by default; Windows gets .zip |
32 | | - format_overrides: |
33 | | - - goos: windows |
34 | | - format: zip |
35 | | - # Files to include in the archive |
36 | | - files: |
37 | | - - README* |
38 | | - - LICENSE* |
39 | | - allow_different_binary_count: true |
| 29 | + - id: filefusion-archive |
| 30 | + # Name format for each archive |
| 31 | + name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' |
| 32 | + # Linux & macOS get tar.gz by default; Windows gets .zip |
| 33 | + format_overrides: |
| 34 | + - goos: windows |
| 35 | + format: zip |
| 36 | + # Files to include in the archive |
| 37 | + files: |
| 38 | + - README* |
| 39 | + - LICENSE* |
| 40 | + allow_different_binary_count: true |
40 | 41 |
|
41 | 42 | # Publishes a GitHub release for the git tag you push (e.g., v0.0.2). |
42 | 43 | release: |
43 | | - prerelease: auto |
44 | | - draft: false |
45 | | - name_template: "v{{ .Version }}" |
| 44 | + prerelease: auto |
| 45 | + draft: false |
| 46 | + name_template: 'v{{ .Version }}' |
46 | 47 |
|
47 | 48 | # Generate checksums for the archives |
48 | 49 | checksum: |
49 | | - name_template: "checksums.txt" |
50 | | - algorithm: sha256 |
| 50 | + name_template: 'checksums.txt' |
| 51 | + algorithm: sha256 |
0 commit comments