Skip to content

Commit 6382a01

Browse files
authored
ci: add luarocks publish workflow (#54)
1 parent 749c0b1 commit 6382a01

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/luarocks.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Push to Luarocks
3+
4+
on:
5+
push:
6+
tags:
7+
- '*'
8+
release:
9+
types:
10+
- created
11+
tags:
12+
- '*'
13+
workflow_dispatch:
14+
15+
jobs:
16+
luarocks-upload:
17+
runs-on: ubuntu-22.04
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0 # Required to count the commits
22+
- name: Get Version
23+
run: echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
24+
- name: LuaRocks Upload
25+
uses: nvim-neorocks/luarocks-tag-release@v5
26+
env:
27+
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
28+
with:
29+
version: ${{ env.LUAROCKS_VERSION }}
30+
test_interpreters: ""
31+
dependencies: |
32+
neorg
33+
telescope.nvim
34+
plenary.nvim

0 commit comments

Comments
 (0)