Skip to content

Commit c3f7c54

Browse files
mrcjkbhrsh7th
andauthored
ci: add release workflow to publish new tags to LuaRocks (hrsh7th#1431)
Co-authored-by: hrsh7th <[email protected]>
1 parent 0cb4b8a commit c3f7c54

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

.github/workflows/release.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "release"
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
jobs:
7+
luarocks-upload:
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: LuaRocks Upload
12+
uses: nvim-neorocks/luarocks-tag-release@v3
13+
env:
14+
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
15+
with:
16+
detailed_description: |
17+
A completion engine plugin for neovim written in Lua.
18+
Completion sources are installed from external repositories and "sourced".
19+

nvim-cmp-scm-1.rockspec

+3-10
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,14 @@ dependencies = {
1818
}
1919

2020
source = {
21-
url = 'http://github.com/hrsh7th/nvim-cmp/archive/v' .. MODREV .. '.zip',
22-
dir = 'nvim-cmp-' .. MODREV,
21+
url = 'git://github.com/hrsh7th/nvim-cmp',
2322
}
2423

25-
if MODREV == 'scm' then
26-
source = {
27-
url = 'git://github.com/hrsh7th/nvim-cmp',
28-
}
29-
end
30-
3124
build = {
3225
type = 'builtin',
3326
copy_directories = {
3427
'autoload',
35-
'doc',
36-
'plugin'
28+
'plugin',
29+
'doc'
3730
}
3831
}

0 commit comments

Comments
 (0)