Skip to content

Commit

Permalink
{Documentation} Simplify docusaurus CI workflow
Browse files Browse the repository at this point in the history
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
  • Loading branch information
SeaOtocinclus authored and facebook-github-bot committed Aug 12, 2024
1 parent 4bad1a8 commit f366fcd
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f366fcd

Please sign in to comment.