mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2025-12-05 22:36:13 +00:00
chore: use luarocks-tag-release action (#2364)
This commit is contained in:
29
.github/workflows/release.yml
vendored
29
.github/workflows/release.yml
vendored
@@ -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
|
||||
env:
|
||||
- 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
|
||||
|
||||
6
Makefile
6
Makefile
@@ -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
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# telescope.nvim
|
||||
|
||||
[](https://gitter.im/nvim-telescope/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
||||
[](https://luarocks.org/modules/Conni2461/telescope.nvim)
|
||||
|
||||
Gaze deeply into unknown regions using the power of the moon.
|
||||
|
||||
|
||||
@@ -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"
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
MODREV=$(git describe --tags --always --first-parent | tr -d "v")
|
||||
luarocks install "telescope.nvim" "$MODREV"
|
||||
@@ -21,16 +21,9 @@ dependencies = {
|
||||
}
|
||||
|
||||
source = {
|
||||
url = 'https://github.com/nvim-telescope/telescope.nvim/archive/refs/tags/' .. MODREV .. '.zip',
|
||||
dir = 'telescope.nvim-' .. MODREV
|
||||
url = 'git://github.com/nvim-telescope/telescope.nvim',
|
||||
}
|
||||
|
||||
if MODREV == 'scm' then
|
||||
source = {
|
||||
url = 'git://github.com/nvim-telescope/telescope.nvim',
|
||||
}
|
||||
end
|
||||
|
||||
build = {
|
||||
type = 'builtin',
|
||||
copy_directories = {
|
||||
|
||||
Reference in New Issue
Block a user