mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
ci: fix luarocks tag release process
bumped version of the action Co-authored-by: Marc Jakobi <mrcjkb89@outlook.com>
This commit is contained in:
parent
64a7e20be2
commit
baed6439e2
3 changed files with 58 additions and 4 deletions
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
|
|
@ -1,17 +1,26 @@
|
||||||
name: "release"
|
name: "release"
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags: # Will upload to luarocks.org
|
||||||
- '*'
|
- "*"
|
||||||
|
pull_request: # Will test a local install without uploading to luarocks.org
|
||||||
|
paths:
|
||||||
|
- 'contrib/*.rockspec'
|
||||||
|
- .github/workflows/release.yml
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
luarocks-upload:
|
luarocks-upload:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: nvim-neorocks/luarocks-tag-release@v2.2.0
|
- uses: actions/checkout@v3
|
||||||
|
- uses: nvim-neorocks/luarocks-tag-release@v5
|
||||||
env:
|
env:
|
||||||
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
|
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
|
||||||
with:
|
with:
|
||||||
|
name: nvim-treesitter
|
||||||
|
version: 0.1
|
||||||
|
license: apache 2
|
||||||
detailed_description: |
|
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
|
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.
|
and to provide some basic functionality such as highlighting based on it.
|
||||||
build_type: "make"
|
template: contrib/nvim-treesitter-luarocks.template
|
||||||
|
|
|
||||||
45
contrib/nvim-treesitter-luarocks.template
Normal file
45
contrib/nvim-treesitter-luarocks.template
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
local git_ref = '$git_ref'
|
||||||
|
local modrev = '$modrev'
|
||||||
|
local specrev = '-1'
|
||||||
|
|
||||||
|
local repo_url = '$repo_url'
|
||||||
|
|
||||||
|
rockspec_format = '3.0'
|
||||||
|
package = '$package'
|
||||||
|
version = modrev .. specrev
|
||||||
|
|
||||||
|
description = {
|
||||||
|
summary = 'Nvim Treesitter configurations and abstraction layer',
|
||||||
|
detailed = $detailed_description,
|
||||||
|
labels = { 'neovim' },
|
||||||
|
homepage = 'https://github.com/nvim-treesitter/nvim-treesitter',
|
||||||
|
license = 'Apache-2.0',
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies = {
|
||||||
|
'lua >= 5.1',
|
||||||
|
}
|
||||||
|
|
||||||
|
-- source = file:///.
|
||||||
|
|
||||||
|
source = {
|
||||||
|
url = repo_url .. '/archive/' .. git_ref .. '.zip',
|
||||||
|
dir = '$repo_name-' .. '$archive_dir_suffix',
|
||||||
|
}
|
||||||
|
|
||||||
|
build = {
|
||||||
|
type = 'make',
|
||||||
|
build_pass = false,
|
||||||
|
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