Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add luarocks release #106

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "release"
on:
push:
tags:
- "v*"
jobs:
luarocks-upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: LuaRocks Upload
uses: nvim-neorocks/luarocks-tag-release@v7
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
with:
summary: "The official Neovim plugin for Supermaven"
detailed_description: |
The official Neovim plugin for Supermaven.

This plugin provides code suggestions using Supermaven's AI assistant.
template: "./rockspec.template"
labels: |
neovim-plugin
lua
nvim
neovim
nvim-plugin
supermaven
ai
license: "MIT"
30 changes: 30 additions & 0 deletions rockspec.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
local git_tag = "$git_tag"
local modrev = "$modrev"
local specrev = "-1"

local repo_url = "$repo_url"

rockspec_format = "3.0"
package = "$package"
version = modrev .. specrev

description = {
summary = "$summary",
detailed = $detailed_description,
labels = $labels,
homepage = "$homepage",
$license
}

dependencies = {
"lua >= 5.1, < 5.4",
}

source = {
url = repo_url .. "/archive/" .. git_tag .. ".zip",
dir = "$repo_name-" .. modrev,
}

build = {
type = "builtin",
}
29 changes: 29 additions & 0 deletions supermaven-nvim-scm-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
local _MODREV, _SPECREV = "scm", "-1"

rockspec_format = "3.0"
package = "supermaven-nvim"
version = _MODREV .. _SPECREV

description = {
summary = "The official Neovim plugin for Supermaven",
detailed = [[
The official Neovim plugin for Supermaven.

This plugin provides code suggestions using Supermaven's AI assistant.
]],
homepage = "https://github.com/supermaven-inc/supermaven-nvim",
license = "MIT",
}

source = {
url = "git+https://github.com/supermaven-inc/supermaven-nvim.git",
tag = _MODREV .. _SPECREV,
}

dependencies = {
"lua >= 5.1 < 5.4",
}

build = {
type = "builtin",
}