Skip to content

Commit

Permalink
feat: add neorg to luarocks
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jun 6, 2023
1 parent 474af82 commit 4fceaa6
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/luarocks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Automatically Generate Documentation

on:
push:
branches:
- main

jobs:
luarocks-upload:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Required to count the commits
- name: Set luarocks version
run: echo "LUAROCKS_VERSION=0.0.$(git log --oneline | wc -l)" >> $GITHUB_ENV
- name: Get new commits
run: echo "NEW_COMMIT_COUNT=$(git log --oneline --since '24 hours ago' | wc -l)" >> $GITHUB_ENV
- name: LuaRocks Upload
uses: nvim-neorocks/luarocks-tag-release@v5
if: ${{ env.NEW_COMMIT_COUNT > 0 }}
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
with:
version: ${{ env.LUAROCKS_VERSION }}
34 changes: 34 additions & 0 deletions neorg-scm-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
local MODREV, SPECREV = "scm", "-1"
rockspec_format = "3.0"
package = "neorg"
version = MODREV .. SPECREV

description = {
summary = "Modernity meets insane extensibility. The future of organizing your life in Neovim.",
labels = { "neovim"},
homepage = "https://github.com/nvim-neorg/neorg",
license = "GPL-3.0",
}

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

source = {
url = "http://github.com/nvim-neorg/neorg/archive/v" .. MODREV .. ".zip",
}

if MODREV == "scm" then
source = {
url = "git://github.com/nvim-neorg/neorg",
}
end

build = {
type = "builtin",
copy_directories = {
'after',
'plugin'
}
}

0 comments on commit 4fceaa6

Please sign in to comment.