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

(cherry picked from commit c113522810)
This commit is contained in:
Marc Jakobi
2023-02-19 14:09:16 +01:00
committed by Simon Hauser
parent e980905c9e
commit 77c216d799
6 changed files with 20 additions and 39 deletions
-10
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"
-4
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"