Skip to content

Commit 3ba9e25

Browse files
committed
ci(publish): try to fix references to rockspec and source rock
1 parent 9b1b69d commit 3ba9e25

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,18 @@ jobs:
2222
- name: Set up LuaRocks
2323
uses: leafo/gh-actions-luarocks@v5
2424

25+
- name: Get Rockspec Version
26+
run: |
27+
[[ "${{ github.ref_name }}" =~ ^v(.+)$ ]]
28+
"spec_version=${BASH_REMATCH[1]}" >> $env:GITHUB_ENV
29+
2530
- name: Publish to LuaRocks
2631
run: |
2732
luarocks upload \
28-
rockspec/luarocks-build-lls-addon-${{ github.ref_name }}.rockspec \
33+
"rockspec/luarocks-build-lls-addon-${env:spec_version}.rockspec" \
2934
--api-key=${{ secrets.LUAROCKS_API_KEY }}
3035
3136
- name: Create GitHub Release
3237
uses: softprops/action-gh-release@v2
3338
with:
34-
files: "*.src.rock"
39+
files: "luarocks-build-lls-addon-${env:spec_version}.src.rock"

0 commit comments

Comments
 (0)