Skip to content

Commit a642971

Browse files
committed
ci: fix trigger on tags
1 parent a082bae commit a642971

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/shell/make_rockspec.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ fi
99
# .rockspec
1010
cp openssl-scm-0.rockspec openssl-${version}.rockspec
1111
script="/^version/s@\"[^\"]\\+\"@\"${version}\"@"
12-
sed -e "${script}" -i openssl-${version}.rockspec
12+
sed -e "${script}" -i.bak openssl-${version}.rockspec
1313
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
1515

1616
# .tar.gz
1717
rm -rf openssl-${version}
1818
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}/
2020
COPYFILE_DISABLE=true tar -czf openssl-${version}.tar.gz openssl-${version}
2121
rm -rf openssl-${version}

.github/workflows/ci.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: CI
33
on:
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" ]
@@ -77,7 +79,9 @@ jobs:
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 }}

0 commit comments

Comments
 (0)