Skip to content

seicontribx402 trigger #29

seicontribx402 trigger

seicontribx402 trigger #29

Workflow file for this run

name: Buf-Push
on:
push:
branches: [ main ]
pull_request:
permissions:
contents: read
packages: read
jobs:
buf-push:
# Only run this workflow in the upstream repo
if: ${{ github.repository == 'sei-protocol/sei-chain' }}
runs-on: ubuntu-latest
env:
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Install Buf
run: |
curl -sSL https://github.com/bufbuild/buf/releases/download/v1.31.0/buf-Linux-x86_64 -o /usr/local/bin/buf
chmod +x /usr/local/bin/buf
- name: Login & Push Buf module
run: |
if [ -n "${BUF_TOKEN}" ]; then
echo "::add-mask::${BUF_TOKEN}"
echo "Logging into Buf..."
echo "${BUF_TOKEN}" | buf registry login buf.build --token-stdin
echo "Pushing module..."
buf push
else
echo "No BUF_TOKEN provided, skipping Buf push."
fi