From 27d5c3c8c36f54b0fedd180f9a0feed59eba2063 Mon Sep 17 00:00:00 2001 From: abhibhaw <39991296+abhibhaw@users.noreply.github.com> Date: Tue, 4 Aug 2026 13:23:44 +0530 Subject: [PATCH] feat: Adds deploy script --- .github/workflows/deploy.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 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 0000000000..72c1dc9e6d --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,43 @@ +name: Build and Deploy Docs Site + +on: + push: + branches: + - docv2-site + workflow_dispatch: {} + +permissions: + contents: write + +concurrency: + group: docs-deploy + cancel-in-progress: false + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: lts/* + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Build site + run: npm run build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build + publish_branch: gh-pages + cname: docs.devtron.ai + user_name: 'github-actions[bot]' + user_email: 'github-actions[bot]@users.noreply.github.com'