Skip to content

Commit c712a1c

Browse files
committed
ci(publish): target rockspec with tag name
1 parent be34bf6 commit c712a1c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish
33
on:
44
push:
55
tags:
6-
- "v*.*.*"
6+
- "v[0-9]+.[0-9]+.[0-9]+-*"
77

88
jobs:
99
publish:
@@ -23,7 +23,10 @@ jobs:
2323
uses: leafo/gh-actions-luarocks@v5
2424

2525
- name: Publish to LuaRocks
26-
run: luarocks upload --api-key=${{ secrets.LUAROCKS_API_KEY }} *.rockspec
26+
run: |
27+
luarocks upload \
28+
rockspec/luarocks-build-lls-addon-${{ github.ref_name }}.rockspec \
29+
--api-key=${{ secrets.LUAROCKS_API_KEY }}
2730
2831
- name: Create GitHub Release
2932
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)