Skip to content

Commit 6c221c2

Browse files
committed
chore: Only run LuaRocks deploy on tagged pushes
1 parent 7d0dc0e commit 6c221c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Deploy
22

33
on:
44
push:
5+
tags:
6+
- v*
57
paths:
68
- rockspecs/*.rockspec
79

@@ -51,7 +53,7 @@ jobs:
5153
5254
upload:
5355
needs: [affected, build]
54-
if: ${{ needs.affected.outputs.rockspecs && github.ref == 'refs/heads/master' && github.repository == 'alerque/fluent-lua' }}
56+
if: ${{ needs.affected.outputs.rockspecs && startsWith(github.ref, 'refs/tags/') && github.repository == 'alerque/fluent-lua' }}
5557
strategy:
5658
fail-fast: false
5759
matrix:

0 commit comments

Comments
 (0)