Skip to content

simple unit test for gRPC service. (#24) #19

simple unit test for gRPC service. (#24)

simple unit test for gRPC service. (#24) #19

name: Publish Github Pages Template
on:
push:
branches: [ 'main' ]
workflow_call:
workflow_dispatch:
inputs:
branch:
required: true
default: main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
publishGitHubPages:
name: Publish GitHub Pages
permissions:
contents: read
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
timeout-minutes: 20
steps:
- name: Secure the runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
branch: ${{ inputs.branch }}
- name: Prepare operating system for documentation build
run: |
sudo apt-get update -y && \
sudo apt-get install -y --no-install-recommends make python3 python3-pip python3-sphinx
- name: Prepare environment for documentation build
run: python3 -m pip install sphinx_book_theme myst_parser sphinxcontrib.mermaid sphinx-copybutton
- name: Build documentation
run: make -C docs/sphinx html
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: ./docs/_build/html
- name: Publish to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4