From f366fcd1b264cee4abdbede7924c05ab12fd5ee8 Mon Sep 17 00:00:00 2001 From: Pierre Moulon Date: Mon, 12 Aug 2024 11:44:50 -0700 Subject: [PATCH] {Documentation} Simplify docusaurus CI workflow Summary: R- emove unnecessary package installation - Follow instructions shared on https://docusaurus.io/docs/deployment#triggering-deployment-with-github-actions for installing yarn and fetching the GitHub repo quicker. Differential Revision: D61148245 --- .github/workflows/publish-website.yml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish-website.yml b/.github/workflows/publish-website.yml index 1db7d897..603ffb0c 100644 --- a/.github/workflows/publish-website.yml +++ b/.github/workflows/publish-website.yml @@ -10,30 +10,22 @@ on: jobs: build_docs_job: runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.9] + steps: - name: Checkout uses: actions/checkout@v4 - - name: Install dependencies - run: | - sudo apt-get update - sudo apt-get upgrade - sudo apt-get install -o Acquire::Retries=5 \ - cmake ninja-build ccache libgtest-dev libfmt-dev \ - libturbojpeg-dev libpng-dev \ - liblz4-dev libzstd-dev libxxhash-dev \ - libboost-system-dev libboost-filesystem-dev libboost-thread-dev libboost-chrono-dev libboost-date-time-dev \ - qtbase5-dev portaudio19-dev doxygen + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: yarn - name: Build the Website run: | cd website - yarn install + yarn install --frozen-lockfile yarn run build - id: build - - name: Get output time - run: echo "The time was ${{ steps.build.outputs.time }}" + - name: Deploy if: ${{ github.event_name == 'push' }} uses: JamesIves/github-pages-deploy-action@releases/v3