add ci for build online doc #17
Workflow file for this run
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
# Copyright (C) 2024 Intel Corporation | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Check Online Document Building | |
permissions: {} | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare files (ignore error) | |
continue-on-error: true | |
shell: bash | |
run: | | |
mkdir opea | |
mkdir opea/docs | |
echo "mv docs' file/folder to opea/doc" | |
mv * opea/docs | |
- name: Build Online Document | |
shell: bash | |
run: | | |
git config --local --get remote.origin.url | |
cd opea/docs | |
echo "build online doc" | |
bash scripts/build.sh |