From 4345fcc74de9c25c186140aeb3eb8a38f2b32044 Mon Sep 17 00:00:00 2001 From: Ladislav Laska Date: Wed, 25 Aug 2021 14:47:06 +0200 Subject: [PATCH] Updated github actions configuration to upload artifacts on builds triggered by a tag. --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7088ee71..af1bb49b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: - name: Upload artifacts env: CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} - if: contains('refs/heads/master refs/heads/gh-actions', github.ref) + if: contains('refs/heads/master refs/heads/gh-actions', github.ref) || startsWith(github.ref, 'refs/tags/') shell: bash run: | pip3 install cloudsmith-cli @@ -45,7 +45,7 @@ jobs: - name: Upload artifacts env: CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} - if: contains('refs/heads/master refs/heads/gh-actions', github.ref) + if: contains('refs/heads/master refs/heads/gh-actions', github.ref) || startsWith(github.ref, 'refs/tags/') run: | pip3 install cloudsmith-cli ./build/upload-artifacts.sh