From 9703d94f9af882c4031c859d1d9dd6a533df3056 Mon Sep 17 00:00:00 2001 From: Andreas Stefl Date: Sun, 26 May 2024 17:51:00 +0200 Subject: [PATCH] only upload on main or dispatch --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 154ea5d..c4a3fba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,7 @@ name: build_test on: + workflow_dispatch: push: branches: - main @@ -104,4 +105,5 @@ jobs: conan test $test_conanfile ${{ matrix.package.package_version }} --build missing - name: conan upload + if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' run: conan upload "*" --check --confirm --remote odr