Skip to content

doc(rockspec.d.lua): clarify some annotations #11

doc(rockspec.d.lua): clarify some annotations

doc(rockspec.d.lua): clarify some annotations #11

Workflow file for this run

name: Publish
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*-[0-9]+"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
env:
spec_version: "" # this gets set in the Get Rockspec Version step
steps:
- uses: actions/checkout@v4
- name: Set up Lua
uses: leafo/gh-actions-lua@v11
with:
luaVersion: "5.4.8"
- name: Set up LuaRocks
uses: leafo/gh-actions-luarocks@v5
- name: Get Rockspec Version
run: |
[[ "${{ github.ref_name }}" =~ ^v(.+)$ ]]
echo "spec_version=${BASH_REMATCH[1]}" >> $GITHUB_ENV
- name: Publish to LuaRocks
run: |
luarocks upload \
"rockspec/luarocks-build-lls-addon-${{ env.spec_version }}.rockspec" \
--api-key=${{ secrets.LUAROCKS_API_KEY }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: "luarocks-build-lls-addon-${{ env.spec_version }}.src.rock"