From 23878279eec7fb42118127d7e78577c028e8e347 Mon Sep 17 00:00:00 2001 From: ValueOn AG Date: Sat, 23 May 2026 23:58:30 +0200 Subject: [PATCH] Remove misplaced Nyla frontend deploy workflows from wiki repo Co-authored-by: Cursor --- .github/workflows/poweron_nyla_int.yml | 71 ------------------------- .github/workflows/poweron_nyla_main.yml | 71 ------------------------- 2 files changed, 142 deletions(-) delete mode 100644 .github/workflows/poweron_nyla_int.yml delete mode 100644 .github/workflows/poweron_nyla_main.yml diff --git a/.github/workflows/poweron_nyla_int.yml b/.github/workflows/poweron_nyla_int.yml deleted file mode 100644 index f2e8030..0000000 --- a/.github/workflows/poweron_nyla_int.yml +++ /dev/null @@ -1,71 +0,0 @@ -name: Deploy Nyla Frontend to Integration - -on: - push: - branches: - - int - workflow_dispatch: - -# Cancel in-progress runs when a new run is triggered (saves logs/storage) -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - - steps: - - name: Checkout Code - uses: actions/checkout@v5 - - - name: Setup Node.js - uses: actions/setup-node@v6 - with: - node-version: '20' - cache: 'npm' - - - name: Copy integration environment file - run: | - cp config/env-poweron-nyla-int.env .env - - - name: Install dependencies - run: | - npm ci - npm install express - - - name: Build React app for integration - run: npm run build:int - - - name: Prepare deployment package - run: | - # Create deployment package with build files and necessary configs - mkdir deploy - cp -r dist/* deploy/ - # Create a simple server.js for serving the app - echo "const express = require('express');" > deploy/server.js - echo "const path = require('path');" >> deploy/server.js - echo "const app = express();" >> deploy/server.js - echo "app.use(express.static(path.join(__dirname)));" >> deploy/server.js - echo "app.get('/*', function(req, res) { res.sendFile(path.join(__dirname, 'index.html')); });" >> deploy/server.js - echo "const port = process.env.PORT || 8080;" >> deploy/server.js - echo "app.listen(port, () => console.log('Server running on port', port));" >> deploy/server.js - # Create a new package.json for deployment - echo '{ - "name": "frontend-int", - "version": "1.0.0", - "private": true, - "scripts": { - "start": "node server.js" - }, - "dependencies": { - "express": "^4.18.2" - } - }' > deploy/package.json - - - name: 'Deploy to Azure Web App' - uses: azure/webapps-deploy@v3 - with: - app-name: 'poweron-nyla-int' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_POWERON_NYLA_INT }} - package: ./deploy \ No newline at end of file diff --git a/.github/workflows/poweron_nyla_main.yml b/.github/workflows/poweron_nyla_main.yml deleted file mode 100644 index 109069f..0000000 --- a/.github/workflows/poweron_nyla_main.yml +++ /dev/null @@ -1,71 +0,0 @@ -name: Deploy Nyla Frontend to Production - -on: - push: - branches: - - main - workflow_dispatch: - -# Cancel in-progress runs when a new run is triggered (saves logs/storage) -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - - steps: - - name: Checkout Code - uses: actions/checkout@v5 - - - name: Setup Node.js - uses: actions/setup-node@v6 - with: - node-version: '20' - cache: 'npm' - - - name: Copy production environment file - run: | - cp config/env-poweron-nyla-prod.env .env - - - name: Install dependencies - run: | - npm ci - npm install express - - - name: Build React app for production - run: npm run build:prod - - - name: Prepare deployment package - run: | - # Create deployment package with build files and necessary configs - mkdir deploy - cp -r dist/* deploy/ - # Create a simple server.js for serving the app - echo "const express = require('express');" > deploy/server.js - echo "const path = require('path');" >> deploy/server.js - echo "const app = express();" >> deploy/server.js - echo "app.use(express.static(path.join(__dirname)));" >> deploy/server.js - echo "app.get('/*', function(req, res) { res.sendFile(path.join(__dirname, 'index.html')); });" >> deploy/server.js - echo "const port = process.env.PORT || 8080;" >> deploy/server.js - echo "app.listen(port, () => console.log('Server running on port', port));" >> deploy/server.js - # Create a new package.json for deployment - echo '{ - "name": "frontend", - "version": "1.0.0", - "private": true, - "scripts": { - "start": "node server.js" - }, - "dependencies": { - "express": "^4.18.2" - } - }' > deploy/package.json - - - name: 'Deploy to Azure Web App' - uses: azure/webapps-deploy@v3 - with: - app-name: 'poweron-nyla' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_POWERON_NYLA }} - package: ./deploy