From a2609f4c32ab216ae3577af4fe1a84f7c0371248 Mon Sep 17 00:00:00 2001 From: Aryan Singh Date: Fri, 1 Mar 2024 13:08:45 +0530 Subject: [PATCH] Created action --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9164a5a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: Build and Deploy + +on: + push: + branches: + - master + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + + - name: Checkout + uses: actions/checkout@v1 + + - name: Build + run: | + npm install + npm run-script build + env: + REACT_APP_GITHUB_URL: ${{ secrets.REACT_APP_GITHUB_URL }} + REACT_APP_GITHUB_TOKEN: ${{ secrets.REACT_APP_GITHUB_TOKEN }} + + - name: Deploy + uses: JamesIves/github-pages-deploy-action@releases/v3 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages + FOLDER: build