Skip to content

Commit c1e8e13

Browse files
committed
add luarocks upload
1 parent 347e1eb commit c1e8e13

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/luarocks.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Push to Luarocks
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
release:
7+
types:
8+
- created
9+
tags:
10+
- '*'
11+
workflow_dispatch:
12+
pull_request: # Will test the luarocks installation on PR, without uploading
13+
jobs:
14+
luarocks-upload:
15+
runs-on: ubuntu-22.04
16+
steps:
17+
- uses: actions/checkout@v3
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: LuaRocks Upload
23+
uses: nvim-neorocks/luarocks-tag-release@v5
24+
env:
25+
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
26+
with:
27+
version: ${{ env.LUAROCKS_VERSION }}
28+
dependencies: |
29+
nvim-web-devicons

0 commit comments

Comments
 (0)