From ee0ceb5f628ea371f2dda9f451e33e37b1d404ef Mon Sep 17 00:00:00 2001 From: Charan Date: Sun, 29 Oct 2023 22:51:14 +0530 Subject: [PATCH] Update build-and-deploy.yml emptied it --- .github/workflows/build-and-deploy.yml | 32 -------------------------- 1 file changed, 32 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 65b922d..8b13789 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -1,33 +1 @@ ---- -name: Build and Deploy React Website -on: - push: - branches: - - main -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Install dependencies - run: npm install - - name: Build React app - run: npm run build - - name: Deploy to GitHub Pages - uses: actions/github-script@v6 - with: - script: | - # Create the gh-pages branch if it doesn't exist - git checkout -b gh-pages || git checkout gh-pages - # Copy the build files to the gh-pages branch - cp -r build/* . - - # Commit and push the changes - git add . - git commit -m "Deploy React website" - git push origin gh-pages - - # Return to the main branch - git checkout main