File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 4
4
on :
5
5
push :
6
6
branches : [master]
7
+ tags : ['*']
7
8
pull_request :
8
9
9
10
jobs :
49
50
with :
50
51
name : binaries
51
52
path : build/
53
+
54
+ release :
55
+ runs-on : ubuntu-22.04
56
+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
57
+ needs :
58
+ - client-build
59
+ steps :
60
+ - uses : actions/checkout@v3
61
+
62
+ - uses : actions/download-artifact@master
63
+ with :
64
+ name : binaries
65
+ path : build/
66
+
67
+ - name : Build archives for release
68
+ run : |
69
+ for arch in amd64; do
70
+ mkdir -p build/package/rvpn_linux_$arch/{,bin/,systemd/}
71
+ cp build/client_linux_$arch build/package/rvpn_linux_$arch/bin/rvpn
72
+ cp -r support/systemd/ build/package/rvpn_linux_$arch/systemd/
73
+ tar --owner root --group root --sort name \
74
+ -C build/package/ -czvf rvpn_linux_$arch.tar.gz rvpn_linux_$arch
75
+ done
76
+
77
+ - uses : softprops/action-gh-release@v1
78
+ with :
79
+ files : |
80
+ build/package/rvpn_linux_*.tar.gz
81
+ build/rvpn-amd64-installer.exe
Original file line number Diff line number Diff line change 2
2
3
3
# download tar
4
4
5
+
5
6
# extract tar
6
7
7
8
# install rvpn and rvpn service
You can’t perform that action at this time.
0 commit comments