Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: RDS MAIN Build and Deploy Monolithic React + Node app to Azure
name: Deploying kc-pit-2026 branch to rds-app-kc prod slot

on:
push:
branches:
- main # or your deployment branch
- kc-pit-2026 # or your deployment branch

jobs:
build-and-deploy:
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v3
with:
app-name: rds-main # Replace with your Azure App Service name
app-name: rds-app-kc # Replace with your Azure App Service name
slot-name: "Production"
publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE }}
publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_rds_app_kc}}
package: ./server
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: RDS TEST Build and Deploy Monolithic React + Node app to Azure
name: Deploying kc-pit-2026-test branch to rds-app-kc test slot

on:
push:
branches:
- test # or your deployment branch
- kc-pit-2026-test # or your deployment branch

jobs:
build-and-deploy:
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v3
with:
app-name: rds-test # Replace with your Azure App Service name
slot-name: "Production"
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_RDS_TEST_DEPLOY }}
app-name: rds-app-kc # Replace with your Azure App Service name
slot-name: "test"
publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_rds_app_kc_test }}
package: ./server
58 changes: 58 additions & 0 deletions .github/workflows/azure-webapp-deploy-temp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Deploying kc-pit-2026 branch to rds-main (rob) slot

on:
push:
branches:
- kc-pit-2026 # or your deployment branch

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
# Checkout the repo
- uses: actions/checkout@v6

# Setup Node.js (adjust version as needed)
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "22"

# Install client and server dependencies and build React app
- name: Install client dependencies
run: |
cd client
npm install

- name: Build React client
run: |
cd client
npm run build

# Copy React dist into server folder
- name: Copy React dist to server build folder
run: |
rm -rf server/dist
cp -r client/dist server/dist

# Install server dependencies
- name: Install server dependencies
run: |
cd server
npm install

# Build server dependencies
- name: Build server
run: |
cd server
npm run build

# Deploy to Azure App Service using Azure/webapps-deploy action
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v3
with:
app-name: rds-main # Replace with your Azure App Service name
slot-name: "Production"
publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_rds_main_rob }}
package: ./server
Loading