mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-08-16 02:45:09 +00:00
feat: add rockspec + luarocks upload workflow (#2276)
telescope.nvim is a common dependency across Neovim plugins.
Using luarocks may alleviate the need for users to specify their
plugins' dependencies in their plugin manager.
(e.g., vim-plug or packer).
See also:
https://teto.github.io/posts/2021-09-17-neovim-plugin-luarocks.html
(cherry picked from commit e8c01bab91)
This commit is contained in:
committed by
Simon Hauser
parent
f7bceabcc9
commit
1b3ece5bad
@@ -0,0 +1,10 @@
|
||||
#!/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"
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
MODREV=$(git describe --tags --always --first-parent | tr -d "v")
|
||||
luarocks install "telescope.nvim" "$MODREV"
|
||||
Reference in New Issue
Block a user