From 699431b228782ca66219a88727bcbc3e0f0386cf Mon Sep 17 00:00:00 2001 From: Alessio Perugini Date: Fri, 11 Jul 2025 10:01:48 +0200 Subject: [PATCH] ci: push proto files to buf registry Pushes proto files when the files change on master and when we release a new tag --- .github/workflows/release-proto-files.yml | 23 +++++++++++++++++++++++ buf.yaml | 1 + 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/release-proto-files.yml diff --git a/.github/workflows/release-proto-files.yml b/.github/workflows/release-proto-files.yml new file mode 100644 index 00000000000..abe11708d60 --- /dev/null +++ b/.github/workflows/release-proto-files.yml @@ -0,0 +1,23 @@ +name: Release Proto files + +on: + push: + branches: + - master + tags: + - "v[0-9]+.[0-9]+.[0-9]+*" + +jobs: + create-release-artifacts: + permissions: + contents: read + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: bufbuild/buf-action@v1 + with: + token: ${{ secrets.BUF_TOKEN }} + push: true diff --git a/buf.yaml b/buf.yaml index 16a8f720093..c82ae255bf4 100644 --- a/buf.yaml +++ b/buf.yaml @@ -17,3 +17,4 @@ lint: - rpc/cc/arduino/cli/commands/v1/lib.proto modules: - path: rpc + name: buf.build/arduino/arduino-cli