Skip to content

ci: automated releases and luarocks uploads #1

ci: automated releases and luarocks uploads

ci: automated releases and luarocks uploads #1

Workflow file for this run

name: "Publish to luarocks"
on:
push:
tags: # Will upload to luarocks.org when a tag is pushed
- "*"
release:
types:
- created
pull_request: # Will test a local install without uploading to luarocks.org
workflow_dispatch: # Allow triggering manually on tags
jobs:
luarocks-release:
name: LuaRocks upload
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Required to count the commits
- name: Get Version
run: echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
- name: LuaRocks Upload
uses: nvim-neorocks/luarocks-tag-release@v5
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
with:
version: ${{ env.LUAROCKS_VERSION }}
labels: |
neovim
nvim-cmp
detailed_description: |
A completion engine plugin for neovim written in Lua.
Completion sources are installed from external repositories and "sourced".