From af845c8c999d6bbfa948aec263302b50d38eab22 Mon Sep 17 00:00:00 2001 From: Akash S Date: Tue, 8 Apr 2025 20:57:56 +0530 Subject: [PATCH 1/3] added github actions for deploying documentation update github actions --- .github/workflows/deploy_docs.yml | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/deploy_docs.yml diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml new file mode 100644 index 00000000..ad3f5cb9 --- /dev/null +++ b/.github/workflows/deploy_docs.yml @@ -0,0 +1,37 @@ +name: Deploy Documentation Site + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Change directory to documentation + run: cd documentation + + - name: Install dependencies + run: yarn install + + - name: Build documentation site + run: yarn build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build \ No newline at end of file From a0f248e779c9cd38d23401566fb01b88234c1342 Mon Sep 17 00:00:00 2001 From: Akash S Date: Tue, 8 Apr 2025 21:05:13 +0530 Subject: [PATCH 2/3] update github actions --- .github/workflows/deploy_docs.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index ad3f5cb9..00d14848 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -21,14 +21,15 @@ jobs: with: node-version: '18' - - name: Change directory to documentation - run: cd documentation - - name: Install dependencies - run: yarn install + run: | + cd documentation + yarn install - name: Build documentation site - run: yarn build + run: | + cd documentation + yarn build - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 From 4ef3184c8271e50cc72debe280afa998689299c2 Mon Sep 17 00:00:00 2001 From: Akash S Date: Wed, 9 Apr 2025 14:37:04 +0530 Subject: [PATCH 3/3] update github actions --- .github/workflows/deploy_docs.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 00d14848..76a5e10a 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -4,9 +4,7 @@ on: push: branches: - main - pull_request: - branches: - - main + jobs: deploy: