Skip to content

Commit d5ebca2

Browse files
committed
Revert "ci(publish): try using luarocks-tag-release action"
This reverts commit 96374ee.
1 parent a6fb3e9 commit d5ebca2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17-
- name: Publish to LuaRocks
18-
uses: nvim-neorocks/luarocks-tag-release@v7
19-
env:
20-
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
17+
- name: Set up Lua
18+
uses: leafo/gh-actions-lua@v11
2119
with:
22-
name: luarocks-build-lls-addon
23-
test_dependencies: |
24-
luarocks >= 3.11.1
25-
busted ~> 2.2
26-
luafilesystem ~> 1.8
27-
inspect ~> 3.1
28-
md5 ~> 1.3
29-
copy_directories: ""
20+
luaVersion: "5.4.8"
21+
22+
- name: Set up LuaRocks
23+
uses: leafo/gh-actions-luarocks@v5
3024

3125
- name: Get Rockspec Version
3226
run: |
3327
[[ "${{ github.ref_name }}" =~ ^v(.+)$ ]]
3428
echo "spec_version=${BASH_REMATCH[1]}" >> $GITHUB_ENV
3529
30+
- name: Publish to LuaRocks
31+
run: |
32+
luarocks upload \
33+
"rockspec/luarocks-build-lls-addon-${spec_version}.rockspec" \
34+
--api-key=${{ secrets.LUAROCKS_API_KEY }}
35+
3636
- name: Create GitHub Release
3737
uses: softprops/action-gh-release@v2
3838
with:

0 commit comments

Comments
 (0)