Skip to content

Commit

Permalink
Merge pull request #256 from Krakonos/upload-artifacts-on-tag
Browse files Browse the repository at this point in the history
Updated github actions configuration to upload artifacts on builds triggered by a tag.
  • Loading branch information
Krakonos authored Aug 27, 2021
2 parents d747fa1 + 4345fcc commit ed8c2b1
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 ed8c2b1

Please sign in to comment.