-
Notifications
You must be signed in to change notification settings - Fork 19
86 lines (70 loc) · 2.36 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Release Python Backend
on:
release:
types: [published]
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
# Download Latest Frontend Build
- name: Download frontend release
run: |
# Get latest release info from the frontend repository
LATEST_RELEASE=$(curl -s https://api.github.com/repos/eloravpn/EloraVPNManagerPanel/releases/latest)
DOWNLOAD_URL=$(echo $LATEST_RELEASE | jq -r '.assets[0].browser_download_url')
# Download the frontend build
curl -L -o frontend.zip "$DOWNLOAD_URL"
# Create static directory and extract frontend files
mkdir -p static
unzip frontend.zip -d static/
# Create archive
- name: Create archive
run: |
zip -r elora-vpn-backend.zip \
static/ \
main.py \
.env.example \
alembic.ini \
requirements.txt \
src/
- name: Attach build to release
run: |
gh release upload ${{ github.event.release.tag_name }} elora-vpn-backend.zip --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update release notes
run: |
gh release edit ${{ github.event.release.tag_name }} --notes "$(cat << 'EOT'
Release ${{ github.event.release.tag_name }} of Elora VPN Manager Backend
### Quick Setup
1. Download and extract:
```bash
unzip elora-vpn-backend.zip
```
2. Download the installation script:
```bash
wget https://raw.githubusercontent.com/eloravpn/EloraVPNManager/main/install.sh
chmod +x install.sh
```
3. Run installation:
```bash
# For production
sudo ./install.sh --domain your-domain.com --protocol https
# For local development
sudo ./install.sh
```
### Service Management
```bash
# Check status
sudo systemctl status elora-vpn
# View logs
sudo journalctl -u elora-vpn -f
```
EOT
)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}