build: add luarocks packaging and bump stylua (#19)

Problem: oil.nvim had no luarocks rockspec, so users of rocks.nvim
and similar tools could not install it from the registry. The stylua
CI action was also pinned to an older version.

Solution: add scm-1 rockspec and a luarocks publish workflow that
gates on tests passing before publishing on version tags. Bump
stylua action from v2.0.2 to v2.1.0.

Closes: barrettruth/oil.nvim#14
This commit is contained in:
Barrett Ruth 2026-02-21 23:28:22 -05:00 committed by GitHub
parent 0f8b084e4a
commit df53b172a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 43 additions and 1 deletions

21
oil.nvim-scm-1.rockspec Normal file
View file

@ -0,0 +1,21 @@
rockspec_format = '3.0'
package = 'oil.nvim'
version = 'scm-1'
source = {
url = 'git+https://github.com/barrettruth/oil.nvim.git',
}
description = {
summary = 'Neovim file explorer: edit your filesystem like a buffer',
homepage = 'https://github.com/barrettruth/oil.nvim',
license = 'MIT',
}
dependencies = {
'lua >= 5.1',
}
build = {
type = 'builtin',
}