Skip to content

Push to Luarocks

Push to Luarocks #579

Workflow file for this run

name: Push to Luarocks
on:
push:
tags: # Will upload to luarocks.org when a tag is pushed
- "*"
pull_request: # Will test a local install without uploading to luarocks.org
workflow_dispatch: # when the above doesn't work
jobs:
luarocks-upload:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to count the commits
- name: Install TS CLI
uses: tree-sitter/setup-action@v2
- name: Install C/C++ Compiler
uses: rlalik/setup-cpp-compiler@master
with:
compiler: clang-latest
- name: Get Version
run: echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
- name: LuaRocks Upload
uses: nvim-neorocks/luarocks-tag-release@v7
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
CXX: "clang++"
with:
version: ${{ env.LUAROCKS_VERSION }}
dependencies: |
nvim-nio ~> 1.7
lua-utils.nvim == 1.0.2
nui.nvim == 0.3.0
pathlib.nvim ~> 2.2
tree-sitter-norg == 0.2.6
tree-sitter-norg-meta == 0.1.0
test_dependencies: |
nlua