Skip to content

Commit 5224198

Browse files
committed
fix: add auto-release action
1 parent ce6b432 commit 5224198

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Global ownership
2+
* @andresperezl

.github/workflows/go.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Go
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Go
12+
uses: actions/setup-go@v5
13+
with:
14+
go-version: 'stable'
15+
- name: Test
16+
run: go test -v ./...
17+

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Go
14+
uses: actions/setup-go@v5
15+
with:
16+
go-version: 'stable'
17+
- name: Create release
18+
id: release
19+
uses: go-semantic-release/action@v1
20+
with:
21+
github-token: ${{ secrets.GITHUB_TOKEN }}
22+

0 commit comments

Comments
 (0)