Skip to content

Commit

Permalink
Merge pull request #691 from openziti/publish-packages-on-release
Browse files Browse the repository at this point in the history
only publish to Artifactory for 'published' releases, not prereleases
  • Loading branch information
qrkourier committed Jul 19, 2023
2 parents a02afea + 73d8312 commit bf4786f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ jobs:
if-no-files-found: error

- name: Configure jFrog CLI
if: ${{ github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v') }}
if: ${{ github.event.release.published && 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_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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit bf4786f

Please sign in to comment.