diff --git a/.github/workflows/azure-webapp-deploy.yml b/.github/workflows/azure-webapp-deploy-rds-app-kc-prod.yml similarity index 83% rename from .github/workflows/azure-webapp-deploy.yml rename to .github/workflows/azure-webapp-deploy-rds-app-kc-prod.yml index 899bd18d..26f97110 100644 --- a/.github/workflows/azure-webapp-deploy.yml +++ b/.github/workflows/azure-webapp-deploy-rds-app-kc-prod.yml @@ -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: @@ -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 diff --git a/.github/workflows/azure-webapp-deploy-test.yml b/.github/workflows/azure-webapp-deploy-rds-app-kc-test.yml similarity index 81% rename from .github/workflows/azure-webapp-deploy-test.yml rename to .github/workflows/azure-webapp-deploy-rds-app-kc-test.yml index f652f190..bd88219b 100644 --- a/.github/workflows/azure-webapp-deploy-test.yml +++ b/.github/workflows/azure-webapp-deploy-rds-app-kc-test.yml @@ -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: @@ -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 diff --git a/.github/workflows/azure-webapp-deploy-temp.yml b/.github/workflows/azure-webapp-deploy-temp.yml new file mode 100644 index 00000000..646def49 --- /dev/null +++ b/.github/workflows/azure-webapp-deploy-temp.yml @@ -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