From 1bd6215204dd18c9287ca44c499347e118147473 Mon Sep 17 00:00:00 2001 From: Shawn Carey Date: Tue, 29 Aug 2023 10:38:38 -0400 Subject: [PATCH] only upload packages to artifactory for release events --- .github/workflows/cpack.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cpack.yml b/.github/workflows/cpack.yml index 93c69ac6..73f4446e 100644 --- a/.github/workflows/cpack.yml +++ b/.github/workflows/cpack.yml @@ -180,13 +180,13 @@ jobs: if-no-files-found: error - name: Configure jFrog CLI - if: ${{ !github.event.release.prerelease && startsWith(github.ref, 'refs/tags/v') }} + if: ${{ github.event_name == 'release' && !github.event.release.prerelease && startsWith(github.ref, 'refs/tags/v') }} uses: jfrog/setup-jfrog-cli@v3 env: JF_ENV_1: ${{ secrets.ZITI_ARTIFACTORY_CLI_CONFIG_PACKAGE_UPLOAD }} - name: Upload RPM to Artifactory with jFrog CLI - if: ${{ !github.event.release.prerelease && startsWith(github.ref, 'refs/tags/v') && matrix.distro.name == 'redhat' }} + if: ${{ github.event_name == 'release' && !github.event.release.prerelease && startsWith(github.ref, 'refs/tags/v') && matrix.distro.name == 'redhat' }} run: > jf rt upload ./build/ziti-edge-tunnel-*.${{ matrix.distro.type }} @@ -195,7 +195,7 @@ jobs: --flat=true - name: Upload DEB to Artifactory with jFrog CLI - if: ${{ !github.event.release.prerelease && startsWith(github.ref, 'refs/tags/v') && matrix.distro.name == 'ubuntu' }} + if: ${{ github.event_name == 'release' && !github.event.release.prerelease && startsWith(github.ref, 'refs/tags/v') && matrix.distro.name == 'ubuntu' }} run: > jf rt upload ./build/ziti-edge-tunnel-*.${{ matrix.distro.type }}