Skip to content

fix typo

fix typo #25

name: Build and Deploy GMR MASTER
on:
push:
branches:
- master
jobs:
web-deploy:
name: πŸš€ Deploy Website GMR Master
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.GMR_PRODUCTION}}+g" src/environments/environment.prod.ts
sed -i "s+'publictest'+${{secrets.GMR_PUBLICTEST}}+g" src/environments/environment.prod.ts
sed -i "s+'appTitle'+${{secrets.GMR_APPTITLE}}+g" src/environments/environment.prod.ts
sed -i "s+'apiUrl'+${{secrets.GMR_APIURL}}+g" src/environments/environment.prod.ts
sed -i "s+'wsHost'+${{secrets.GMR_WSHOST}}+g" src/environments/environment.prod.ts
sed -i "s+'wsAppKey'+${{secrets.GMR_WSAPPKEY}}+g" src/environments/environment.prod.ts
- name: Install dependencies
run: npm ci
- name: πŸ”¨ Build
run: npm run build-gmr
- name: πŸ“‚ Sync Files
uses: SamKirkland/web-deploy@v1
with:
target-server: ${{ secrets.FTP_SERVER }}
remote-user: ${{ secrets.SSH_USERNAME_GULASCH }}
private-ssh-key: ${{ secrets.SSH_KEY_GULASCH }}
source-path: ./dist/mkjAPP/browser/
destination-path: ~/app.gulaschmusi.at/