Skip to content

Commit c80ea6d

Browse files
author
Brean
committed
fix: Remove GoReleaser step and update release configuration for GitHub Release
1 parent 4cea2db commit c80ea6d

2 files changed

Lines changed: 23 additions & 28 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -190,23 +190,16 @@ jobs:
190190
rpmbuild -bb ~/rpmbuild/SPECS/${BINARY_NAME}.spec
191191
cp ~/rpmbuild/RPMS/x86_64/${BINARY_NAME}-${VERSION}-1.*.rpm dist/
192192
193-
# Create release with GoReleaser
194-
- name: Run GoReleaser
195-
uses: goreleaser/goreleaser-action@v5
196-
with:
197-
version: v2.4.1
198-
args: release --clean
199-
env:
200-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
201-
202-
# Upload additional artifacts
203-
- name: Upload additional artifacts
193+
# Upload artifacts and create release
194+
- name: Create GitHub Release
204195
uses: softprops/action-gh-release@v1
205196
with:
206197
files: |
207198
dist/*.deb
208199
dist/*.rpm
209200
dist/bin/*
210201
generate_release_notes: true
202+
draft: false
203+
prerelease: false
211204
env:
212205
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
version: 2
2+
23
project_name: node-cleaner
34

45
builds:
5-
- id: rust-build
6-
builder: rust # Use Cargo to build the Rust project.
7-
dir: . # Use the current directory as the working directory.
8-
binary: node-cleaner # Name the output binary "node-cleaner".
9-
targets:
10-
- x86_64-unknown-linux-gnu # 64-bit Linux build.
11-
- aarch64-unknown-linux-gnu # ARM64 Linux build using GNU libc.
12-
flags:
13-
- --release # Build with release optimizations.
6+
- skip: true # Skip builds since we're building manually with Rust
147

158
archives:
16-
- id: default
17-
ids:
18-
- rust-build
19-
formats:
20-
- tar.gz
21-
- zip
22-
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
9+
- name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
10+
format: tar.gz
2311
files:
12+
- dist/bin/*
2413
- README.md
25-
- LICENSE
14+
- LICENSE*
15+
16+
release:
17+
draft: false
18+
prerelease: false
19+
name_template: "Release {{ .Tag }}"
20+
21+
changelog:
22+
sort: asc
23+
filters:
24+
exclude:
25+
- "^docs:"
26+
- "^test:"
27+
- "^chore:"

0 commit comments

Comments
 (0)