Skip to content

Commit 33bb03c

Browse files
committed
chore: add ci
1 parent a993e9b commit 33bb03c

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/buf-ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Buf CI
2+
on:
3+
push:
4+
paths:
5+
- '**.proto'
6+
- '**/buf.yaml'
7+
pull_request:
8+
types: [opened, synchronize, reopened, labeled, unlabeled]
9+
delete:
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
jobs:
14+
buf:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: bufbuild/buf-action@v1
19+
with:
20+
# Publishing schema changes to the BSR requires a BSR authentication token.
21+
token: ${{ secrets.BUF_TOKEN }}
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
push_create_visibility: public
24+
push: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
!proto/**/*.proto
77

88
# repo
9+
!.github/**
910
!buf.yaml
1011
!README.md
1112
!LICENSE

buf.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version: v2
22
modules:
33
- path: proto
4+
name: buf.build/lagrange-dev/proto
45
lint:
56
use:
67
- STANDARD

0 commit comments

Comments
 (0)