chore: use luarocks-tag-release action (#2364)

This commit is contained in:
Marc Jakobi
2023-02-19 10:24:43 +01:00
committed by GitHub
parent 203bf56091
commit c113522810
6 changed files with 20 additions and 39 deletions

View File

@@ -8,15 +8,22 @@ 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
- name: LuaRocks Upload
uses: nvim-neorocks/luarocks-tag-release@v1.0.2
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
run: make luarocks_upload
- name: Install release
run: make test_luarocks_install
with:
summary: "Find, Filter, Preview, Pick. All lua, all the time."
detailed_description: |
A highly extendable fuzzy finder over lists.
Built on the latest awesome features from neovim core.
Telescope is centered around modularity, allowing for easy customization.
dependencies: |
plenary.nvim
copy_directories: |
doc
ftplugin
plugin
scripts
autoload
data

View File

@@ -6,9 +6,3 @@ lint:
docgen:
nvim --headless --noplugin -u scripts/minimal_init.vim -c "luafile ./scripts/gendocs.lua" -c 'qa'
luarocks_upload:
bash ./scripts/luarocks-upload.sh
test_luarocks_install:
bash ./scripts/test-luarocks-install.sh

View File

@@ -1,6 +1,7 @@
# telescope.nvim
[![Gitter](https://badges.gitter.im/nvim-telescope/community.svg)](https://gitter.im/nvim-telescope/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![LuaRocks](https://img.shields.io/luarocks/v/Conni2461/telescope.nvim?logo=lua&color=purple)](https://luarocks.org/modules/Conni2461/telescope.nvim)
Gaze deeply into unknown regions using the power of the moon.

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/telescope.nvim-$MODREV-1.rockspec"
cp "telescope.nvim-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 "telescope.nvim" "$MODREV"

View File

@@ -20,16 +20,9 @@ dependencies = {
'plenary.nvim',
}
source = {
url = 'https://github.com/nvim-telescope/telescope.nvim/archive/refs/tags/' .. MODREV .. '.zip',
dir = 'telescope.nvim-' .. MODREV
}
if MODREV == 'scm' then
source = {
url = 'git://github.com/nvim-telescope/telescope.nvim',
}
end
build = {
type = 'builtin',