Skip to content

Commit f5c2a21

Browse files
committed
ci: replace goreleaser with unified CI workflow
1 parent 896479a commit f5c2a21

2 files changed

Lines changed: 42 additions & 47 deletions

File tree

.github/goreleaser.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
tags: ["v*"]
7+
pull_request:
8+
branches: [main]
9+
workflow_dispatch:
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v6
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v6
19+
with:
20+
go-version-file: "go.mod"
21+
22+
- name: Build
23+
run: go build -v ./...
24+
25+
- name: Test
26+
run: go test -v ./...
27+
28+
release:
29+
runs-on: ubuntu-latest
30+
if: startsWith(github.ref, 'refs/tags/')
31+
needs: test
32+
permissions:
33+
contents: write
34+
steps:
35+
- uses: actions/checkout@v6
36+
37+
- name: Create Release
38+
uses: softprops/action-gh-release@v3
39+
with:
40+
generate_release_notes: true
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)