From 648370a94de39c408309c62803f7b95079303a7b Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Sun, 26 Mar 2023 22:53:14 +0200 Subject: [PATCH] Add workflow to publish this plugin to LuaRocks --- .github/workflows/release.yml | 18 ++++++++++++++++++ README.md | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3104997 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,18 @@ +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@v4 + env: + LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} + with: + detailed_description: | + A high-performance color highlighter for Neovim which has no external dependencies! + Written in performant Luajit. diff --git a/README.md b/README.md index abdc368..5bab316 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ A high-performance color highlighter for Neovim which has **no external dependen ## Installation and Usage +[![LuaRocks](https://img.shields.io/luarocks/v/norcalli/nvim-colorizer.lua?logo=lua&color=purple)](https://luarocks.org/modules/norcalli/nvim-colorizer.lua) + Requires Neovim >= 0.4.0 and `set termguicolors` (I'm looking into relaxing these constraints). If you don't have true color for your terminal or are unsure, [read this excellent guide](https://github.com/termstandard/colors).