ci(coverage): add total typescript code coverage statistics #11
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 IBM Corp. All Rights Reserved. | |
# | |
# SPDX-License-Identifier: CC-BY-4.0 | |
name: Deploy Docs (Github Pages) | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'docs/**' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
SITE_URL: https://${{ github.repository_owner }}.github.io/cacti | |
NODEJS_VERSION: v18.18.2 | |
jobs: | |
deploy-docs: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Use Node.js ${{ env.NODEJS_VERSION }} | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: ${{ env.NODEJS_VERSION }} | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4.1.1 | |
- name: Use Python 3.x | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' # caching pip dependencies | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
working-directory: docs | |
- name: Build packages | |
run: npm run configure | |
- name: Build markdown for openapi specs | |
run: 'python3 docs/scripts/publish_openapi.py' | |
- name: Build and publish | |
run: git pull && mkdocs gh-deploy | |
working-directory: docs |