From 41b0c011cf18aa394ff65c1c6d4bb4cc409e9efd Mon Sep 17 00:00:00 2001 From: Kenneth Bingham Date: Wed, 19 Jul 2023 10:19:10 -0400 Subject: [PATCH] only publish to Artifactory for 'published' releases, not prereleases --- .github/workflows/cpack.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cpack.yml b/.github/workflows/cpack.yml index 12d641e1..46d1989c 100644 --- a/.github/workflows/cpack.yml +++ b/.github/workflows/cpack.yml @@ -181,7 +181,7 @@ jobs: JF_ENV_1: ${{ secrets.ZITI_ARTIFACTORY_CLI_CONFIG_PACKAGE_UPLOAD }} - name: Upload RPM to Artifactory with jFrog CLI - if: ${{ github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v') && matrix.distro.name == 'redhat' }} + if: ${{ github.event.release.published && startsWith(github.ref, 'refs/tags/v') && matrix.distro.name == 'redhat' }} run: > jf rt upload ./build/ziti-edge-tunnel-*.${{ matrix.distro.type }} @@ -190,7 +190,7 @@ jobs: --flat=true - name: Upload DEB to Artifactory with jFrog CLI - if: ${{ github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v') && matrix.distro.name == 'ubuntu' }} + if: ${{ github.event.release.published && startsWith(github.ref, 'refs/tags/v') && matrix.distro.name == 'ubuntu' }} run: > jf rt upload ./build/ziti-edge-tunnel-*.${{ matrix.distro.type }}