summaryrefslogtreecommitdiff
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
authorMarc Jakobi <mrcjkb89@outlook.com>2023-01-10 15:33:23 +0100
committerGitHub <noreply@github.com>2023-01-10 15:33:23 +0100
commite8c01bab917537ba4f54193c29b77bf4a04584d3 (patch)
tree36a7689c727ffb304ad14a4d60e8cc469de9e346 /.github/workflows/release.yml
parent04af51dbfb17c2afa0b8d82b0e842e0638201ca9 (diff)
feat: add rockspec + luarocks upload workflow (#2276)
telescope.nvim is a common dependency across Neovim plugins. Using luarocks may alleviate the need for users to specify their plugins' dependencies in their plugin manager. (e.g., vim-plug or packer). See also: https://teto.github.io/posts/2021-09-17-neovim-plugin-luarocks.html
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..11ce428
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,22 @@
+name: "release"
+on:
+ push:
+ tags:
+ - '*'
+jobs:
+ luarocks-upload:
+ runs-on: ubuntu-22.04
+ steps:
+ - uses: actions/checkout@v3
+ - uses: leafo/gh-actions-lua@v9
+ with:
+ luaVersion: "luajit-2.1.0-beta3"
+ - uses: leafo/gh-actions-luarocks@v4
+ - name: Install dkjson
+ run: luarocks install dkjson
+ - name: Luarocks Upload
+ env:
+ LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
+ run: make luarocks_upload
+ - name: Install release
+ run: make test_luarocks_install