ci: automated releases and luarocks uploads #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v6 | |
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". |