Skip to content

Refactor/iosxe separation of concerns (#75) #6

Refactor/iosxe separation of concerns (#75)

Refactor/iosxe separation of concerns (#75) #6

Workflow file for this run

# Copyright 2026 Cisco Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: CI build develop documentation
on:
push:
branches:
- develop
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: 'pip'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: docs/website/package-lock.json
- name: Install MkDocs dependencies
run: pip install -r requirements.txt
- name: Build React website
working-directory: docs/website
run: |
npm ci
npm run build
- name: Build MkDocs documentation
run: mkdocs build --strict
- name: Combine pages
run: |
mkdir -p deploy
cp -r docs/website/out/* deploy/
mkdir -p deploy/docs
cp -r site/* deploy/docs/
- name: Push to gh-pages branch
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./deploy
publish_branch: gh-pages
force_orphan: true