File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 99# .rockspec
1010cp openssl-scm-0.rockspec openssl-${version} .rockspec
1111script=" /^version/s@\" [^\" ]\\ +\" @\" ${version} \" @"
12- sed -e " ${script} " -i openssl-${version} .rockspec
12+ sed -e " ${script} " -i.bak openssl-${version} .rockspec
1313script=" 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
1515
1616# .tar.gz
1717rm -rf openssl-${version}
1818mkdir -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} /
2020COPYFILE_DISABLE=true tar -czf openssl-${version} .tar.gz openssl-${version}
2121rm -rf openssl-${version}
Original file line number Diff line number Diff line change 33on :
44 push :
55 branches : [ "master" ]
6+ tags :
7+ - v?[0-9].[0-9]+.[0-9]+-[0-9]+
68 pull_request :
79 # The branches below must be a subset of the branches above
810 branches : [ "master" ]
7779 - name : Luarocks Release
7880 # lua-cjson is required for luarocks upload
7981 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