Skip to content

Merge pull request #283 from gampig/feature/database-versioning #29

Merge pull request #283 from gampig/feature/database-versioning

Merge pull request #283 from gampig/feature/database-versioning #29

Workflow file for this run

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
env:
FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}
run: echo "$FIREBASE_CONFIG" > ./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