summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Jakobi <mrcjkb89@outlook.com>2023-02-19 10:24:43 +0100
committerGitHub <noreply@github.com>2023-02-19 10:24:43 +0100
commitc113522810a39cc035ae178cdada583610ba6ce3 (patch)
tree5d96ef6cf974683f9384755a90600af3ff6ad9dd
parent203bf5609137600d73e8ed82703d6b0e320a5f36 (diff)
chore: use luarocks-tag-release action (#2364)
-rw-r--r--.github/workflows/release.yml29
-rw-r--r--Makefile6
-rw-r--r--README.md1
-rw-r--r--scripts/luarocks-upload.sh10
-rw-r--r--scripts/test-luarocks-install.sh4
-rw-r--r--telescope.nvim-scm-1.rockspec9
6 files changed, 20 insertions, 39 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 11ce428..84ed031 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -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
diff --git a/Makefile b/Makefile
index df7d1e2..c3da51d 100644
--- a/Makefile
+++ b/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
diff --git a/README.md b/README.md
index 2e70a0d..68af6a9 100644
--- a/README.md
+++ b/README.md
@@ -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.
diff --git a/scripts/luarocks-upload.sh b/scripts/luarocks-upload.sh
deleted file mode 100644
index 8807d9e..0000000
--- a/scripts/luarocks-upload.sh
+++ /dev/null
@@ -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"
diff --git a/scripts/test-luarocks-install.sh b/scripts/test-luarocks-install.sh
deleted file mode 100644
index 8198015..0000000
--- a/scripts/test-luarocks-install.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env bash
-
-MODREV=$(git describe --tags --always --first-parent | tr -d "v")
-luarocks install "telescope.nvim" "$MODREV"
diff --git a/telescope.nvim-scm-1.rockspec b/telescope.nvim-scm-1.rockspec
index f717d64..3dc660d 100644
--- a/telescope.nvim-scm-1.rockspec
+++ b/telescope.nvim-scm-1.rockspec
@@ -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 = {