mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
ci: add release workflow for luarocks upload (#4109)
This commit is contained in:
parent
a4b72d4f7f
commit
ba35d094c1
4 changed files with 60 additions and 32 deletions
18
.github/workflows/release.yml
vendored
Normal file
18
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
name: "release"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
jobs:
|
||||||
|
luarocks-upload:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
uses: nvim-neorocks/luarocks-tag-release@v1.0.2
|
||||||
|
env:
|
||||||
|
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
|
||||||
|
with:
|
||||||
|
detailed_description: |
|
||||||
|
The goal of nvim-treesitter is both to provide a simple and easy way to use the interface for tree-sitter in Neovim
|
||||||
|
and to provide some basic functionality such as highlighting based on it.
|
||||||
|
build_type: "make"
|
||||||
7
Makefile
Normal file
7
Makefile
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# https://github.com/luarocks/luarocks/wiki/Creating-a-Makefile-that-plays-nice-with-LuaRocks
|
||||||
|
build:
|
||||||
|
echo "Do nothing"
|
||||||
|
|
||||||
|
install:
|
||||||
|
mkdir -p $(INST_LUADIR)
|
||||||
|
cp -r autoload plugin queries lua $(INST_LUADIR)
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
local MODREV, SPECREV = "scm", "-1"
|
|
||||||
rockspec_format = "3.0"
|
|
||||||
package = "nvim-treesitter"
|
|
||||||
version = MODREV .. SPECREV
|
|
||||||
|
|
||||||
description = {
|
|
||||||
summary = "Nvim Treesitter configurations and abstraction layer",
|
|
||||||
labels = { "neovim"},
|
|
||||||
homepage = "https://github.com/nvim-treesitter/nvim-treesitter",
|
|
||||||
license = "Apache-2.0",
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies = {
|
|
||||||
"lua >= 5.1, < 5.4",
|
|
||||||
}
|
|
||||||
|
|
||||||
source = {
|
|
||||||
url = "http://github.com/nvim-treesitter/nvim-treesitter/archive/v" .. MODREV .. ".zip",
|
|
||||||
}
|
|
||||||
|
|
||||||
if MODREV == 'scm' then
|
|
||||||
source = {
|
|
||||||
url = 'git://github.com/nvim-treesitter/nvim-treesitter',
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
build = {
|
|
||||||
type = "builtin",
|
|
||||||
copy_directories = {
|
|
||||||
'plugin'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
35
nvim-treesitter-scm-1.rockspec
Normal file
35
nvim-treesitter-scm-1.rockspec
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
local MODREV, SPECREV = 'scm', '-1'
|
||||||
|
rockspec_format = '3.0'
|
||||||
|
package = 'nvim-treesitter'
|
||||||
|
version = MODREV .. SPECREV
|
||||||
|
|
||||||
|
description = {
|
||||||
|
summary = 'Nvim Treesitter configurations and abstraction layer',
|
||||||
|
labels = { 'neovim' },
|
||||||
|
homepage = 'https://github.com/nvim-treesitter/nvim-treesitter',
|
||||||
|
license = 'Apache-2.0',
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies = {
|
||||||
|
'lua >= 5.1',
|
||||||
|
}
|
||||||
|
|
||||||
|
source = {
|
||||||
|
url = 'git://github.com/nvim-treesitter/nvim-treesitter',
|
||||||
|
}
|
||||||
|
|
||||||
|
build = {
|
||||||
|
type = 'make',
|
||||||
|
install_variables = {
|
||||||
|
INST_PREFIX='$(PREFIX)',
|
||||||
|
INST_BINDIR='$(BINDIR)',
|
||||||
|
INST_LIBDIR='$(LIBDIR)',
|
||||||
|
INST_LUADIR='$(LUADIR)',
|
||||||
|
INST_CONFDIR='$(CONFDIR)',
|
||||||
|
},
|
||||||
|
copy_directories = {
|
||||||
|
'autoload',
|
||||||
|
'plugin',
|
||||||
|
'queries'
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue