ci: add release workflow to publish new tags to LuaRocks (#1431)
Co-authored-by: hrsh7th <629908+hrsh7th@users.noreply.github.com>
This commit is contained in:
19
.github/workflows/release.yaml
vendored
Normal file
19
.github/workflows/release.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: "release"
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
jobs:
|
||||
luarocks-upload:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: LuaRocks Upload
|
||||
uses: nvim-neorocks/luarocks-tag-release@v3
|
||||
env:
|
||||
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
|
||||
with:
|
||||
detailed_description: |
|
||||
A completion engine plugin for neovim written in Lua.
|
||||
Completion sources are installed from external repositories and "sourced".
|
||||
|
||||
@@ -18,21 +18,14 @@ dependencies = {
|
||||
}
|
||||
|
||||
source = {
|
||||
url = 'http://github.com/hrsh7th/nvim-cmp/archive/v' .. MODREV .. '.zip',
|
||||
dir = 'nvim-cmp-' .. MODREV,
|
||||
url = 'git://github.com/hrsh7th/nvim-cmp',
|
||||
}
|
||||
|
||||
if MODREV == 'scm' then
|
||||
source = {
|
||||
url = 'git://github.com/hrsh7th/nvim-cmp',
|
||||
}
|
||||
end
|
||||
|
||||
build = {
|
||||
type = 'builtin',
|
||||
copy_directories = {
|
||||
'autoload',
|
||||
'doc',
|
||||
'plugin'
|
||||
'plugin',
|
||||
'doc'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user