-
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |
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
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' | ||
} | ||
} | ||
|