From 93225fbff430986bd9bfa6dad70daa3d485ad982 Mon Sep 17 00:00:00 2001 From: Harish Mohan Raj Date: Fri, 13 Dec 2024 12:12:44 +0000 Subject: [PATCH] Add workflow file to deploy mintlify docs --- .github/workflows/deploy-website-mintlify.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/deploy-website-mintlify.yml diff --git a/.github/workflows/deploy-website-mintlify.yml b/.github/workflows/deploy-website-mintlify.yml new file mode 100644 index 0000000000..36f5545d53 --- /dev/null +++ b/.github/workflows/deploy-website-mintlify.yml @@ -0,0 +1,35 @@ +name: Deploy Mintlify Website + +on: + push: + branches: + - main + paths: + - 'autogen/**' + - 'website/**' + - '.github/workflows/deploy-website-mintlify.yml' + +jobs: + deploy-website-mintlify: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + lfs: true + fetch-depth: 0 + + - name: Prepare website content + run: | + # Create a temporary directory for filtered content + mkdir -p temp_website + + # Copy all files except .ipynb and node_modules + find website -type f -not -path "*/node_modules/*" -not -name "*.ipynb" -exec cp --parents {} temp_website/ \; + + - name: Deploy to mintlify-pages branch + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: mintlify-pages + folder: temp_website/website + clean: true # Automatically remove deleted files from the deploy branch \ No newline at end of file