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
This commit is contained in:
22
.github/workflows/release.yml
vendored
Normal file
22
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: "release"
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
jobs:
|
||||
luarocks-upload:
|
||||
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:
|
||||
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
|
||||
run: make luarocks_upload
|
||||
- name: Install release
|
||||
run: make test_luarocks_install
|
||||
Reference in New Issue
Block a user