From 9e8a9094038cade392a6388218a74d31f479c970 Mon Sep 17 00:00:00 2001 From: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com> Date: Tue, 10 Oct 2023 14:25:15 -0700 Subject: [PATCH] Add gh workflow to publish flyteidl to buf (#4178) * Add gh workflow to publish flyteidl to buf Signed-off-by: Eduardo Apolinario * Put in the right place Signed-off-by: Eduardo Apolinario * Do not push to buf on pull requests Signed-off-by: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com> * Only push to buf if flyteidl changes Signed-off-by: Eduardo Apolinario --------- Signed-off-by: Eduardo Apolinario Signed-off-by: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com> Co-authored-by: Eduardo Apolinario --- .github/workflows/flyteidl-buf-publish.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/flyteidl-buf-publish.yml diff --git a/.github/workflows/flyteidl-buf-publish.yml b/.github/workflows/flyteidl-buf-publish.yml new file mode 100644 index 0000000000..3a6915db6f --- /dev/null +++ b/.github/workflows/flyteidl-buf-publish.yml @@ -0,0 +1,18 @@ +name: Publish flyteidl Buf Package + +on: + push: + branches: + - master + paths: + - 'flyteidl/**' +jobs: + buf: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: bufbuild/buf-setup-action@v1 + - uses: bufbuild/buf-push-action@v1 + with: + buf_token: ${{ secrets.BUF_TOKEN }} + input: 'flyteidl/protos'