chore: use luarocks-tag-release workflow

This commit is contained in:
Marc Jakobi 2023-02-03 18:23:14 +01:00
parent 902d6aa314
commit 64bee38a97
6 changed files with 14 additions and 39 deletions

View file

@ -8,15 +8,15 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: leafo/gh-actions-lua@v9
with:
luaVersion: "luajit-2.1.0-beta3"
- uses: leafo/gh-actions-luarocks@v4
- name: Install dkjson
run: luarocks install dkjson
- name: Luarocks Upload
env:
- name: LuaRocks Upload
uses: nvim-neorocks/luarocks-tag-release@v1.0.1
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
run: make luarocks_upload
- name: Install release
run: make test_luarocks_install
with:
summary: "A collection of common configurations for Neovim's built-in language server client."
detailed_description: |
This plugin allows for declaratively configuring,
launching, and initializing language servers you have installed on your system.
Language server configurations are community-maintained.
copy_directories: |
doc

View file

@ -10,9 +10,3 @@ lint:
stylua --check .
.PHONY: test lint
luarocks_upload:
bash ./scripts/luarocks-upload.sh
test_luarocks_install:
bash ./scripts/test-luarocks-install.sh

View file

@ -10,6 +10,8 @@ See also `:help lsp-config`.
## Install
[![LuaRocks](https://img.shields.io/luarocks/v/teto/nvim-lspconfig?logo=lua&color=purple)](https://luarocks.org/modules/teto/nvim-lspconfig)
* Requires neovim version 0.7 above. Update Nvim and nvim-lspconfig before reporting an issue.
* Install nvim-lspconfig like any other Vim plugin, e.g. with [packer.nvim](https://github.com/wbthomason/packer.nvim):
```lua

View file

@ -20,16 +20,9 @@ dependencies = {
}
source = {
url = 'https://github.com/neovim/nvim-lspconfig/archive/v' .. _MODREV .. '.zip',
dir = 'nvim-lspconfig-' .. _MODREV,
url = 'git://github.com/neovim/nvim-lspconfig',
}
if _MODREV == 'scm' then
source = {
url = 'git://github.com/neovim/nvim-lspconfig',
}
end
build = {
type = 'builtin',
copy_directories = {

View file

@ -1,10 +0,0 @@
#!/usr/bin/env bash
# Expects the LUAROCKS_API_KEY secret to be set
TMP_DIR=$(mktemp -d)
MODREV=$(git describe --tags --always --first-parent | tr -d "v")
DEST_ROCKSPEC="$TMP_DIR/nvim-lspconfig-$MODREV-1.rockspec"
cp "nvim-lspconfig-scm-1.rockspec" "$DEST_ROCKSPEC"
sed -i "s/= 'scm'/= '$MODREV'/g" "$DEST_ROCKSPEC"
luarocks upload "$DEST_ROCKSPEC" --api-key="$LUAROCKS_API_KEY"

View file

@ -1,4 +0,0 @@
#!/usr/bin/env bash
MODREV=$(git describe --tags --always --first-parent | tr -d "v")
luarocks install "nvim-lspconfig" "$MODREV"