-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.63 KB
/
build-deploy-mkj-test.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
name: Build and Deploy MKJ TEST
on:
push:
branches:
- dev
jobs:
web-deploy:
name: 🚀 Deploy Website MKJ Test
runs-on: ubuntu-latest
steps:
- name: 🚚 Get Latest Code
uses: actions/checkout@v3
- name: 📦 Install Packages
uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"
- name: Update environment file
run: |
sed -i "s+'production'+${{secrets.TEST_PRODUCTION}}+g" src/environments/environment.prod.ts
sed -i "s+'publictest'+${{secrets.TEST_PUBLICTEST}}+g" src/environments/environment.prod.ts
sed -i "s+'appTitle'+${{secrets.TEST_APPTITLE}}+g" src/environments/environment.prod.ts
sed -i "s+'apiUrl'+${{secrets.TEST_APIURL}}+g" src/environments/environment.prod.ts
sed -i "s+'wsHost'+${{secrets.TEST_WSHOST}}+g" src/environments/environment.prod.ts
sed -i "s+'wsAppKey'+${{secrets.TEST_WSAPPKEY}}+g" src/environments/environment.prod.ts
- name: Install dependencies
run: npm ci
- name: 🔨 Build
run: npm run build-test
- name: 📂 Sync Files
uses: SamKirkland/web-deploy@v1
with:
target-server: ${{ secrets.FTP_SERVER }}
remote-user: ${{ secrets.SSH_USERNAME_MKJ }}
private-ssh-key: ${{ secrets.SSH_KEY_MKJ }}
source-path: ./dist/mkjAPP/browser/
destination-path: ~/test.mk-jainzen.at/