Skip to content

Commit

Permalink
ci: add release workflow to publish new tags to LuaRocks
Browse files Browse the repository at this point in the history
NOTE: This requires a LUAROCKS_API_KEY.
See the
[luarocks-tag-release readme](https://github.com/nvim-neorocks/luarocks-tag-release#prerequisites)
  • Loading branch information
mrcjkb committed Feb 10, 2023
1 parent 52f2a5a commit e8039da
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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@v2.0.0
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".
copy_directories:
autoload
plugin
doc

9 changes: 1 addition & 8 deletions nvim-cmp-scm-1.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,9 @@ 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 = {
Expand Down

0 comments on commit e8039da

Please sign in to comment.