From 0f7d3e1165aa17c44a368bb08b34e20fcb24c3e4 Mon Sep 17 00:00:00 2001 From: Hugo Labrador Date: Thu, 16 Nov 2023 15:17:22 +0100 Subject: [PATCH] Push to buf (#222) --- .github/workflows/build-and-publish.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 8a2e6e3..0bc1082 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -26,3 +26,11 @@ jobs: ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts 2> /dev/null - name: build-and-publish run: cs3apis-build -git-ssh -push-go -push-js -push-node -push-python + - name: setup-buf + uses: bufbuild/buf-setup-action@v1 + - name: push-buf + uses: bufbuild/buf-push-action@v1 + with: + buf_token: ${{ secrets.BUF_TOKEN }} + # Push as a branch when not pushing to `main` + branch: ${{ github.ref_name != 'main' }}