Skip to content

Commit 57fab4e

Browse files
committed
chore: v0.2.4 release prep
Bump _VERSION to 0.2.4 across all modules and add LuaRocks publish workflow triggered on GitHub Release. The workflow generates a versioned rockspec from lua-resty-jwt-dev-0.rockspec via luarocks new_version.
1 parent 3fd216c commit 57fab4e

3 files changed

Lines changed: 34 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: LuaRocks publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
luarocks-release:
9+
runs-on: ubuntu-latest
10+
name: LuaRocks upload
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
submodules: recursive
16+
17+
- uses: leafo/gh-actions-lua@v12
18+
with:
19+
luaVersion: "5.1.5"
20+
21+
- uses: leafo/gh-actions-luarocks@v6
22+
23+
- name: Upload to LuaRocks
24+
run: |
25+
VERSION="${GITHUB_REF_NAME#v}"
26+
luarocks install lua-cjson
27+
luarocks install luasec
28+
luarocks new_version lua-resty-jwt-dev-0.rockspec "${VERSION}-1" \
29+
"git+https://github.com/cdbattags/lua-resty-jwt.git"
30+
luarocks upload "lua-resty-jwt-${VERSION}-1.rockspec" --api-key=$LUAROCKS_API_KEY
31+
env:
32+
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}

lib/resty/jwt-validators.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local _M = { _VERSION = "0.2.3" }
1+
local _M = { _VERSION = "0.2.4" }
22

33
--[[
44
This file defines "validators" to be used in validating a spec. A "validator" is simply a function with

lib/resty/jwt.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local hmac = require "resty.hmac"
55
local resty_random = require "resty.random"
66
local cipher = require "resty.openssl.cipher"
77

8-
local _M = { _VERSION = "0.2.3" }
8+
local _M = { _VERSION = "0.2.4" }
99

1010
local mt = {
1111
__index = _M

0 commit comments

Comments
 (0)