-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.14 KB
/
cd-staging.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
name: CD Staging
on:
push:
branches:
- 'main'
paths-ignore:
- '.devcontainer/**'
- 'docs/**'
- 'tools/**'
- '.editorconfig'
- '.git*'
- '**.md'
env:
FTP_HOST: w01bad8e.kasserver.com
FTP_USER: f015f4cc
jobs:
vue-client:
name: Deploy client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Configure project
run: mv ./src/firebase/config.prod.ts ./src/firebase/config.ts
- name: Build Project with npm
run: |
npm ci
npm run build -- --modern
env:
VUE_APP_API_ENDPOINT: https://api.app.feuerwehr-parkstetten.de/feuerwehr-app
VUE_APP_ANALYTICS_API_KEY: ${{ secrets.ANALYTICS_API_KEY }}
- name: Upload app
uses: SamKirkland/FTP-Deploy-Action@4.0.0
with:
server: ${{ env.FTP_HOST }}
username: ${{ env.FTP_USER }}
password: ${{ secrets.STAGING_FTP_PASSWORD }}
local-dir: ./dist/
state-name: ../.client-ftp-deploy-sync-state.json