Skip to content

Commit 44efbf7

Browse files
oowlclaude
andcommitted
feat: add luarocks publish workflow and 0.1.5 rockspec
Add GitHub Actions workflow for publishing to LuaRocks (supports manual trigger and tag push), and create the 0.1.5 rockspec. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dd65c79 commit 44efbf7

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish to LuaRocks
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "*"
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install LuaRocks
16+
uses: hishamhm/gh-actions-lua@master
17+
with:
18+
luaVersion: "5.4"
19+
20+
- uses: hishamhm/gh-actions-luarocks@master
21+
22+
- name: Upload to LuaRocks
23+
env:
24+
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
25+
run: |
26+
luarocks upload lua-reqwest-0.1.5-1.rockspec --api-key="$LUAROCKS_API_KEY"

lua-reqwest-0.1.5-1.rockspec

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package = "lua-reqwest"
2+
version = "0.1.5-1"
3+
4+
source = {
5+
url = "git+https://github.com/oowl/lua-reqwest",
6+
tag = "0.1.5",
7+
}
8+
9+
description = {
10+
summary = "A Lua HTTP client based on rust reqwest",
11+
detailed = [[
12+
A Lua HTTP client based on rust reqwest
13+
]],
14+
homepage = "https://github.com/oowl/lua-reqwest",
15+
license = "MIT"
16+
}
17+
18+
dependencies = {
19+
"lua >= 5.1",
20+
"luarocks-build-rust-mlua",
21+
}
22+
23+
build = {
24+
type = "rust-mlua",
25+
modules = {
26+
"reqwest"
27+
},
28+
}

0 commit comments

Comments
 (0)