From c3f7c54f6efed83b5657b1cf2e2a9bb7c121c6b4 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Mon, 1 May 2023 16:51:18 +0200 Subject: [PATCH] ci: add release workflow to publish new tags to LuaRocks (#1431) Co-authored-by: hrsh7th <629908+hrsh7th@users.noreply.github.com> --- .github/workflows/release.yaml | 19 +++++++++++++++++++ nvim-cmp-scm-1.rockspec | 13 +++---------- 2 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..1acd349 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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". + diff --git a/nvim-cmp-scm-1.rockspec b/nvim-cmp-scm-1.rockspec index 71c8c52..3b6e93e 100644 --- a/nvim-cmp-scm-1.rockspec +++ b/nvim-cmp-scm-1.rockspec @@ -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' } }