Skip to content

Commit

Permalink
ci: add release workflow to publish new tags to LuaRocks (#1431)
Browse files Browse the repository at this point in the history
Co-authored-by: hrsh7th <629908+hrsh7th@users.noreply.github.com>
  • Loading branch information
mrcjkb and hrsh7th authored May 1, 2023
1 parent 0cb4b8a commit c3f7c54
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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".
13 changes: 3 additions & 10 deletions nvim-cmp-scm-1.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

0 comments on commit c3f7c54

Please sign in to comment.