From 9db58c45f7d62d4f63fb3da3f0ec892364d5cec2 Mon Sep 17 00:00:00 2001 From: Hugo Gonzalez Labrador Date: Thu, 16 Nov 2023 15:02:59 +0100 Subject: [PATCH 1/3] fix build badge --- .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 d2dc774d..8a2e6e3c 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 df619a5e..0bdfbc65 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 5bcf0747475065b21ff23af44f004970c92c522d Mon Sep 17 00:00:00 2001 From: Hugo Gonzalez Labrador Date: Thu, 16 Nov 2023 15:12:53 +0100 Subject: [PATCH 2/3] push buf --- .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 8a2e6e3c..0bc10825 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' }} From 57491ef308747ad0ce21c433af9abe71e5bbad2d Mon Sep 17 00:00:00 2001 From: Hugo Gonzalez Labrador Date: Thu, 16 Nov 2023 15:22:30 +0100 Subject: [PATCH 3/3] use new buf push version --- .github/workflows/build-and-publish.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 0bc10825..1b7bd354 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -32,5 +32,4 @@ jobs: 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' }} + draft: ${{ github.ref_name != 'main'}}