From ed2bd911839c2e7ba5ec6bb8e612c7f799cd5ff8 Mon Sep 17 00:00:00 2001 From: Tushar <103761473+Tusharjain123@users.noreply.github.com> Date: Mon, 15 Jan 2024 14:51:56 +0530 Subject: [PATCH] feat: ci/cd pipeline added (#71) --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..4419416 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +name: Services +on: + push: + branches: [main] + +jobs: + build_deploy: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./frontend + steps: + - name: checkout + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 16.14.2 + - name: Installing Dependencies + run: npm ci + - name: Building + run: npm run build + - name: Deploying + uses: SamKirkland/FTP-Deploy-Action@v4.3.4 + with: + server: ${{ secrets.FTP_SERVER }} + username: ${{ secrets.FTP_USERNAME }} + password: ${{ secrets.FTP_PASSWORD }} + local-dir: "frontend/build/"