Skip to content

Commit c7f2ddb

Browse files
committed
feat(ci): support luarocks versioning deployment
1 parent 5fcb739 commit c7f2ddb

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/luarocks.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Push to Luarocks
22

33
on:
4+
push:
5+
tags:
6+
- "v*"
47
schedule:
58
- cron: "0 0 * * *"
69
workflow_dispatch:
@@ -15,6 +18,5 @@ jobs:
1518
env:
1619
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
1720
with:
18-
version: "scm"
19-
extra_luarocks_args: |
20-
--force
21+
version: ${{ github.ref_type == 'tag' && github.ref_name || 'scm' }}
22+
extra_luarocks_args: ${{ github.ref_type != 'tag' && '--force' || '' }}

0 commit comments

Comments
 (0)