Skip to content

Commit a9f4208

Browse files
committed
feat: add release ci
1 parent 5383163 commit a9f4208

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ name: CI
44
on:
55
push:
66
branches: [master]
7+
tags: ['*']
78
pull_request:
89

910
jobs:
@@ -49,3 +50,32 @@ jobs:
4950
with:
5051
name: binaries
5152
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

support/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# download tar
44

5+
56
# extract tar
67

78
# install rvpn and rvpn service

0 commit comments

Comments
 (0)