File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 9
9
# .rockspec
10
10
cp openssl-scm-0.rockspec openssl-${version} .rockspec
11
11
script=" /^version/s@\" [^\" ]\\ +\" @\" ${version} \" @"
12
- sed -e " ${script} " -i openssl-${version} .rockspec
12
+ sed -e " ${script} " -i.bak openssl-${version} .rockspec
13
13
script=" s@https://github.com/zhaozg/lua-openssl/archive/master.zip@https://github.com/zhaozg/lua-openssl/releases/download/$version /openssl-$version .tar.gz@"
14
- sed -e " ${script} " -i openssl-${version} .rockspec
14
+ sed -e " ${script} " -i.bak openssl-${version} .rockspec
15
15
16
16
# .tar.gz
17
17
rm -rf openssl-${version}
18
18
mkdir -p openssl-${version} /deps
19
- cp -r LICENSE README.md * .win lib test Makefile samples src deps openssl-${version} /
19
+ cp -r LICENSE README.md * .win test Makefile src deps openssl-${version} /
20
20
COPYFILE_DISABLE=true tar -czf openssl-${version} .tar.gz openssl-${version}
21
21
rm -rf openssl-${version}
Original file line number Diff line number Diff line change 3
3
on :
4
4
push :
5
5
branches : [ "master" ]
6
+ tags :
7
+ - v?[0-9].[0-9]+.[0-9]+-[0-9]+
6
8
pull_request :
7
9
# The branches below must be a subset of the branches above
8
10
branches : [ "master" ]
77
79
- name : Luarocks Release
78
80
# lua-cjson is required for luarocks upload
79
81
run : |
80
- $HOME/.usr/bin/luarocks install lua-cjson
81
- $HOME/.usr/bin/luarocks build
82
- $HOME/.usr/bin/luarocks test
83
- $HOME/.usr/bin/luarocks upload openssl-${{ steps.get_version.outputs.VERSION }}.rockspec --api-key=${{ secrets.LUAROCKS_TOKEN }}
82
+ export PATH=$HOME/.usr/bin:$PATH
83
+ export LUA_CPATH=$HOME/.usr/lib/lua/5.1/?.so
84
+ luarocks install lua-cjson
85
+ luarocks build
86
+ luarocks test
87
+ luarocks upload openssl-${{ steps.get_version.outputs.VERSION }}.rockspec --api-key=${{ secrets.LUAROCKS_TOKEN }}
You can’t perform that action at this time.
0 commit comments