Skip to content

Commit ced3365

Browse files
authored
Merge pull request #118 from smswithoutborders/preview
Preview
2 parents 6010e74 + 04958a7 commit ced3365

36 files changed

Lines changed: 3237 additions & 3329 deletions
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Preview Deployment Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- preview
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
name: Build Application
14+
runs-on: ubuntu-latest
15+
environment:
16+
name: preview
17+
url: https://preview-4.relaysms.afkanerd.de
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: "22"
26+
27+
- name: Enable Corepack and Use Latest Yarn
28+
run: |
29+
corepack enable
30+
corepack prepare yarn@stable --activate
31+
32+
- name: Install dependencies
33+
run: |
34+
yarn install
35+
36+
- name: Build project
37+
run: |
38+
yarn build
39+
40+
- name: Securely Copy Artifacts to Server
41+
uses: appleboy/scp-action@master
42+
with:
43+
host: ${{ secrets.HOST }}
44+
username: ${{ secrets.USER }}
45+
key: ${{ secrets.SSH_KEY }}
46+
source: "build/*"
47+
target: ${{ secrets.BUILD_PATH }}
48+
strip_components: 1
49+
rm: false
50+
51+
- name: Execute Remote SSH Commands
52+
uses: appleboy/ssh-action@master
53+
with:
54+
host: ${{ secrets.HOST }}
55+
username: ${{ secrets.USER }}
56+
key: ${{ secrets.SSH_KEY }}
57+
script: |
58+
set -e
59+
60+
echo "============================"
61+
echo "🚀 Deploy Project ..."
62+
echo "============================"
63+
if ! ${{secrets.BUILD_CMD}}; then
64+
echo "❌ Error deploying project!"
65+
exit 1
66+
fi
67+
echo "==============================="
68+
echo "✅ Deployment complete"
69+
echo "==============================="

.github/workflows/staging.deployment-pipeline.yaml

Lines changed: 0 additions & 148 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"react": "^18.2.0",
3030
"react-bootstrap": "^2.10.4",
3131
"react-dom": "^18.2.0",
32+
"react-helmet-async": "^3.0.0",
3233
"react-html-parser": "^2.0.2",
3334
"react-i18next": "^15.0.1",
3435
"react-icons": "^5.2.1",

public/Images/Relay.png

64.2 KB
Loading

public/Images/SWOB-Black.png

10.8 KB
Loading

public/Images/code.png

170 KB
Loading

public/index.html

Lines changed: 64 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,67 @@
11
<!doctype html>
22
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="/favico.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="SMSWithoutBorders(SWOB) is dedicated to researching, developing and
11+
promoting secure and open-source communication tools that function even
12+
without an internet connection."
13+
/>
14+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
15+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
316

4-
<head>
5-
<meta charset="utf-8" />
6-
<link rel="icon" href="./favico.ico" />
7-
<meta name="viewport" content="width=device-width, initial-scale=1" />
8-
<meta name="theme-color" content="#000000" />
9-
<meta name="description" content="Communicate offline with online platforms using RelaySMS" />
10-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
11-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
12-
13-
<link rel="preconnect" href="https://fonts.googleapis.com">
14-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
15-
<link
16-
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Unbounded:wght@200..900&display=swap"
17-
rel="stylesheet">
18-
19-
<title>SMSWithoutBorders</title>
20-
</head>
21-
22-
<body>
23-
<noscript>Communicate offline with online platforms using RelaySMS.</noscript>
24-
<div id="root"></div>
25-
</body>
26-
27-
</html>
17+
<link rel="preconnect" href="https://fonts.googleapis.com" />
18+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
19+
<link
20+
href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Unbounded:wght@200..900&display=swap"
21+
rel="stylesheet"
22+
/>
23+
24+
<meta property="og:type" content="website" />
25+
26+
<meta property="og:title" content="SMSWithoutBorders" />
27+
28+
<meta
29+
property="og:description"
30+
content="Open-source communication tools designed for low-connectivity environments."
31+
/>
32+
33+
<meta
34+
property="og:image"
35+
content="https://smswithoutborders.com/og-image.png"
36+
/>
37+
38+
<meta property="og:url" content="https://smswithoutborders.com" />
39+
40+
<link rel="canonical" href="https://smswithoutborders.com/" />
41+
42+
<meta name="robots" content="index, follow" />
43+
44+
<meta name="author" content="SMSWithoutBorders" />
45+
46+
<title>
47+
SMSWithoutBorders | Communication Beyond Internet Connectivity
48+
</title>
49+
</head>
50+
51+
<body>
52+
<script type="application/ld+json">
53+
{
54+
"@context": "https://schema.org",
55+
"@type": "Organization",
56+
"name": "SMSWithoutBorders",
57+
"url": "https://smswithoutborders.com",
58+
"logo": "https://smswithoutborders.com/logo.png",
59+
"sameAs": [
60+
"https://github.com/smswithoutborders",
61+
"https://docs.smswithoutborders.com",
62+
]
63+
}
64+
</script>
65+
<div id="root"></div>
66+
</body>
67+
</html>

0 commit comments

Comments
 (0)