-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.59 KB
/
Copy pathdeploy.yml
File metadata and controls
55 lines (48 loc) · 1.59 KB
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
name: Deploy to Hostinger
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: false
jobs:
deploy:
name: FTP-sync static surface to pv.kineticgain.com
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Verify build
run: |
test -f index.html || (echo "FAIL: index.html missing" && exit 1)
test -f .htaccess || (echo "FAIL: .htaccess missing" && exit 1)
grep -q "Pharmacovigilance Review and Reporting Hub" index.html || (echo "FAIL: index.html missing title" && exit 1)
echo "OK: verified"
ls -lah
- name: FTP Deploy
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: ${{ secrets.FTP_SERVER }}
protocol: ftps # FTPS, not cleartext ftp (action default)
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./
server-dir: /pv/
exclude: |
**/.git*
**/.git*/**
**/.github/**
**/node_modules/**
README.md
CHANGELOG.md
LICENSE
- name: Verify live
run: |
sleep 30
curl -fsSL --max-time 15 "https://pv.kineticgain.com/" > /tmp/live.html || exit 1
grep -q "Pharmacovigilance Review and Reporting Hub" /tmp/live.html || (echo "FAIL: live render missing title" && exit 1)
echo "OK: live at https://pv.kineticgain.com/"