Skip to content

Commit 6180bbb

Browse files
committed
[ci] Build artefact only if commit/push is on a tag. This will automatically create release on tags
1 parent 3cd88b0 commit 6180bbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114

115115
deploy:
116116
name: Deploy artifacts
117-
if: always() && startsWith(github.ref, 'refs/heads/main') # we are on a branch (not a PR)
117+
if: always() && startsWith(github.ref, 'refs/tags/')
118118
needs: [build-and-test]
119119
runs-on: ubuntu-latest
120120
continue-on-error: true

0 commit comments

Comments
 (0)