We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b1b69d commit 3ba9e25Copy full SHA for 3ba9e25
.github/workflows/publish.yml
@@ -22,13 +22,18 @@ jobs:
22
- name: Set up LuaRocks
23
uses: leafo/gh-actions-luarocks@v5
24
25
+ - name: Get Rockspec Version
26
+ run: |
27
+ [[ "${{ github.ref_name }}" =~ ^v(.+)$ ]]
28
+ "spec_version=${BASH_REMATCH[1]}" >> $env:GITHUB_ENV
29
+
30
- name: Publish to LuaRocks
31
run: |
32
luarocks upload \
- rockspec/luarocks-build-lls-addon-${{ github.ref_name }}.rockspec \
33
+ "rockspec/luarocks-build-lls-addon-${env:spec_version}.rockspec" \
34
--api-key=${{ secrets.LUAROCKS_API_KEY }}
35
36
- name: Create GitHub Release
37
uses: softprops/action-gh-release@v2
38
with:
- files: "*.src.rock"
39
+ files: "luarocks-build-lls-addon-${env:spec_version}.src.rock"
0 commit comments