Skip to content

Commit 7b9fa0d

Browse files
committed
feat: luarocks support
1 parent 2e83d2b commit 7b9fa0d

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.github/workflows/luarocks.yml

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

0 commit comments

Comments
 (0)