File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Push to Luarocks
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+ release :
8
+ types :
9
+ - created
10
+ pull_request : # Runs test install without uploading
11
+ workflow_dispatch : # Allows to trigger manually
12
+
13
+ jobs :
14
+ luarocks-upload :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ with :
19
+ fetch-depth : 0 # Required to count the commits
20
+ - name : Get Version
21
+ run : echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
22
+ - name : Install C/C++ Compiler
23
+ uses : rlalik/setup-cpp-compiler@master
24
+ with :
25
+ compiler : clang-latest
26
+ - name : Install Lua
27
+ uses : leso-kn/gh-actions-lua@master
28
+ with :
29
+ luaVersion : " 5.1"
30
+ - name : Install Luarocks
31
+ uses : hishamhm/gh-actions-luarocks@master
32
+ - name : Install `luarocks-build-treesitter-parser` Package
33
+ run : |
34
+ luarocks --verbose --local --lua-version=5.1 install luarocks-build-treesitter-parser
35
+ - name : LuaRocks Upload
36
+ uses : nvim-neorocks/luarocks-tag-release@v5
37
+ env :
38
+ LUAROCKS_API_KEY : ${{ secrets.LUAROCKS_API_KEY }}
39
+ with :
40
+ version : ${{ env.LUAROCKS_VERSION }}
41
+ dependencies : |
42
+ tree-sitter-orgmode ~> 1
You can’t perform that action at this time.
0 commit comments