Skip to content

Commit fcc7ced

Browse files
committed
feat: rocs.nvim/luarocks support
1 parent a9be4e7 commit fcc7ced

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/workflows/luarocks.yml

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

.github/workflows/release-please.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
permissions:
3+
contents: write
4+
pull-requests: write
5+
6+
name: Release Please
7+
8+
on:
9+
workflow_dispatch:
10+
push:
11+
branches:
12+
- main
13+
14+
jobs:
15+
release:
16+
name: release
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: google-github-actions/release-please-action@v4
20+
with:
21+
release-type: simple
22+
token: ${{ secrets.PAT }}

0 commit comments

Comments
 (0)