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