-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: switched to docusaurus check and deploy workflows (#4688)
* ci: switched to docusaurus check and deploy workflows * ci: added workflow_dispatch back to deploy-docs
- Loading branch information
Showing
2 changed files
with
33 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
# This check-docs workflow was created based on instructions from: | ||
# https://docusaurus.io/docs/deployment | ||
name: Check docs build | ||
# This workflow runs when a PR is labeled with `docs` | ||
# This will check if the docs build successfully by running `npm run build` | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- './docs' | ||
|
||
jobs: | ||
check-docs-build: | ||
if: ${{ github.event.label.name == 'docs' }} | ||
|
||
name: Check docs build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
node-version: 18 | ||
cache: npm | ||
|
||
- name: Install dependencies and build docs 🧱 | ||
run: | | ||
cd docs | ||
npm install | ||
npm run build | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Test build website | ||
run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters