Skip to content

Commit

Permalink
{Documentation} Simplify docusaurus CI workflow (#156)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #156

- Remove unnecessary package installation
- Better "yarn" installation

Follow instructions shared on https://docusaurus.io/docs/deployment#triggering-deployment-with-github-actions

Reviewed By: georges-berenger

Differential Revision: D61148245

fbshipit-source-id: 81501dfd5c5079596cc1759bee439998ec5c2517
  • Loading branch information
SeaOtocinclus authored and facebook-github-bot committed Aug 12, 2024
1 parent 4bad1a8 commit 916af4b
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,29 @@ on:
jobs:
build_docs_job:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
cache-dependency-path: ./website/yarn.lock

- 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
run: sudo apt-get install doxygen

- name: Build the Website
working-directory: 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
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
Expand Down

0 comments on commit 916af4b

Please sign in to comment.