Skip to content

Commit

Permalink
Updated github actions configuration to upload artifacts on builds tr…
Browse files Browse the repository at this point in the history
…iggered by a tag.
  • Loading branch information
Krakonos committed Aug 25, 2021
1 parent 9be50e5 commit 4345fcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4345fcc

Please sign in to comment.