From d38351d097fa1af890ecefaa82888bfd1facc3c6 Mon Sep 17 00:00:00 2001 From: Hugo Labrador Date: Thu, 16 Nov 2023 15:04:41 +0100 Subject: [PATCH 1/2] fix build badge (#220) --- .github/workflows/build-and-publish.yml | 1 - README.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index d2dc774..8a2e6e3 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -24,6 +24,5 @@ jobs: touch /root/.ssh/known_hosts chmod 400 /root/.ssh/known_hosts ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts 2> /dev/null - cat /root/.ssh/id_rsa - name: build-and-publish run: cs3apis-build -git-ssh -push-go -push-js -push-node -push-python diff --git a/README.md b/README.md index df619a5..0bdfbc6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Gitter chat](https://badges.gitter.im/cs3org/cs3apis.svg)](https://gitter.im/cs3org/cs3apis) [![Build Status](https://cloud.drone.io/api/badges/cs3org/cs3apis/status.svg)](https://cloud.drone.io/cs3org/cs3apis) +[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Gitter chat](https://badges.gitter.im/cs3org/cs3apis.svg)](https://gitter.im/cs3org/cs3apis) [![Build Status](https://github.com/cs3org/cs3apis/actions/workflows/build-and-publish.yml/badge.svg)] ================ From 0f7d3e1165aa17c44a368bb08b34e20fcb24c3e4 Mon Sep 17 00:00:00 2001 From: Hugo Labrador Date: Thu, 16 Nov 2023 15:17:22 +0100 Subject: [PATCH 2/2] 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' }}