.goreleaser.yaml RawHistoryFolder
1# GoReleaser configuration for ArchUp installer
2# https://goreleaser.com
3version: 2
4
5before:
6 hooks:
7 - go mod tidy
8
9builds:
10 # Main build - static binary for Arch Linux ISO
11 - id: archup
12 main: ./cmd/archup
13 binary: archup
14
15 env:
16 - CGO_ENABLED=0
17
18 goos:
19 - linux
20
21 goarch:
22 - amd64
23
24 # Version information via ldflags
25 ldflags:
26 - -s -w
27 - -X github.com/bnema/archup/cmd.version={{.Version}}
28
29 # Build flags for reproducible builds
30 flags:
31 - -trimpath
32
33archives:
34 - id: default
35 name_template: >-
36 {{ .ProjectName }}_
37 {{- .Version }}_
38 {{- .Os }}_
39 {{- if eq .Arch "amd64" }}x86_64
40 {{- else if eq .Arch "386" }}i386
41 {{- else }}{{ .Arch }}{{ end }}
42 format_overrides:
43 - goos: linux
44 format: tar.gz
45 files:
46 - LICENSE
47 - README.md
48 - CHANGELOG.md
49 - install/**/*
50
51checksum:
52 name_template: 'checksums.txt'
53 algorithm: sha256
54 extra_files:
55 - glob: ./dist/archup_linux_amd64_v1/archup
56 name_template: archup
57
58snapshot:
59 version_template: "{{ incpatch .Version }}-next"
60
61changelog:
62 sort: asc
63 use: github
64 filters:
65 exclude:
66 - '^docs:'
67 - '^test:'
68 - '^ci:'
69 - '^chore:'
70 - '^build\(deps\):'
71 - 'Merge pull request'
72 - 'Merge branch'
73 groups:
74 - title: 'Features'
75 regexp: '^feat(\(.+\))?:'
76 order: 0
77 - title: 'Bug Fixes'
78 regexp: '^fix(\(.+\))?:'
79 order: 1
80 - title: 'Performance'
81 regexp: '^perf(\(.+\))?:'
82 order: 2
83 - title: 'Refactoring'
84 regexp: '^refactor(\(.+\))?:'
85 order: 3
86 - title: 'Documentation'
87 regexp: '^docs(\(.+\))?:'
88 order: 4
89 - title: 'Other Changes'
90 order: 999
91
92release:
93 github:
94 owner: bnema
95 name: archup
96
97 # Don't auto-publish as draft initially
98 draft: false
99
100 # Replace existing draft if it exists
101 replace_existing_draft: true
102
103 # Header for release notes
104 header: |
105 ## {{.Tag}} Release
106
107 ArchUp installer with Go-based TUI for automated Arch Linux installation.
108
109 Released on {{.Date}}
110
111 # Footer with installation instructions
112 footer: |
113 ---
114
115 ## Installation
116
117 ### Quick Install (from Arch Linux ISO)
118 ```bash
119 curl -fsSL https://archup.run/install | bash
120 ```
121
122 ### Install Pre-release/Dev Version
123 ```bash
124 curl -fsSL https://archup.run/install | bash -s -- --dev
125 ```
126
127 ### Install Specific Version
128 ```bash
129 curl -fsSL https://archup.run/install | bash -s -- --version {{.Tag}}
130 ```
131
132 ---
133
134 **Full Changelog**: https://github.com/bnema/archup/compare/{{.PreviousTag}}...{{.Tag}}
135
136 # Auto-detect prerelease from version (v1.0.0-rc1, v1.0.0-alpha, etc.)
137 prerelease: auto
138
139 # Mark stable releases as latest; prerelease: auto keeps -dev tags as pre-release
140 make_latest: true
141
142 # Replace existing release notes
143 mode: replace
144
145 # Also upload standalone binary
146 extra_files:
147 - glob: ./dist/archup_linux_amd64_v1/archup
148 name_template: archup