From 8ef31f57e3d9fd0a857a137fa16f9ea8789940eb Mon Sep 17 00:00:00 2001 From: Aarti Panchal Date: Wed, 2 Jul 2025 15:14:53 +0530 Subject: [PATCH 1/2] 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/2] 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