From 8ef31f57e3d9fd0a857a137fa16f9ea8789940eb Mon Sep 17 00:00:00 2001 From: Aarti Panchal Date: Wed, 2 Jul 2025 15:14:53 +0530 Subject: [PATCH 1/4] deployment --- .github/workflows/deploy.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..8fef99c --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,32 @@ +name: Deploy React App to Azure using Publish Profile + +on: + push: + branches: + - main # or your chosen deployment branch + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Install dependencies + run: npm install + + - name: Build React app + run: npm run build + + - name: Deploy to Azure Web App + uses: azure/webapps-deploy@v2 + with: + app-name: react-web-app + publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} + package: build From 5fd6f4a996a8a295e3ab0fc849fd48264406bea8 Mon Sep 17 00:00:00 2001 From: Aarti Panchal Date: Wed, 2 Jul 2025 15:47:19 +0530 Subject: [PATCH 2/4] add: deployment --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8fef99c..4e9d2d9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 22.13.1 - name: Install dependencies run: npm install @@ -27,6 +27,6 @@ jobs: - name: Deploy to Azure Web App uses: azure/webapps-deploy@v2 with: - app-name: react-web-app + app-name: redirection-app publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} package: build From e34dbbc743757ef06410ce4b52412cc07146f0f7 Mon Sep 17 00:00:00 2001 From: Aarti Panchal Date: Wed, 2 Jul 2025 15:53:30 +0530 Subject: [PATCH 3/4] add: deployment --- .github/workflows/deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4e9d2d9..db8e0a8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,8 +3,7 @@ name: Deploy React App to Azure using Publish Profile on: push: branches: - - main # or your chosen deployment branch - + - main jobs: build-and-deploy: runs-on: ubuntu-latest From 7fd9cba0080ae9cf7c3b5c144a6d4e146bb454f2 Mon Sep 17 00:00:00 2001 From: Aarti Panchal Date: Wed, 2 Jul 2025 16:13:43 +0530 Subject: [PATCH 4/4] updated workflow --- .../workflows/azure-static-web-apps-green-cliff-0220ecb10.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/azure-static-web-apps-green-cliff-0220ecb10.yml b/.github/workflows/azure-static-web-apps-green-cliff-0220ecb10.yml index aa3ebb7..921b874 100644 --- a/.github/workflows/azure-static-web-apps-green-cliff-0220ecb10.yml +++ b/.github/workflows/azure-static-web-apps-green-cliff-0220ecb10.yml @@ -3,7 +3,7 @@ name: Azure Static Web Apps CI/CD on: push: branches: - - main + - development pull_request: types: [opened, synchronize, reopened, closed] branches: