-
Notifications
You must be signed in to change notification settings - Fork 10
67 lines (62 loc) · 1.82 KB
/
doc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
name: 'Deploy Docs'
on:
workflow_dispatch:
push:
tags:
- 'latest'
branches:
- 'main'
pull_request:
branches:
- 'main'
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: false
jobs:
build_docs:
name: 'Build Docs'
runs-on: intellabs-01
container:
image: ghcr.io/sphinx-doc/sphinx:7.1.2
volumes:
- ${{ github.workspace }}:/ws
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
shell: bash
run: |
apt update
apt install -y -qq --no-install-recommends enchant-2 git
pip install -r docs/requirements.txt
sphinx-build -W -b linkcheck /ws/docs _build
sphinx-build -W -b spelling /ws/docs _build
sphinx-build -M html /ws/docs _build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: '_build/html'
# # https://1cicd.intel.com/standards.html#standard-stage-names
# deploy_publish_github_pages:
# name: 'Deploy to GitHub Pages'
# needs: build_docs
# if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' }}
# runs-on: intellabs-01
# container:
# image: 'amr-registry.caas.intel.com/heaven/sphinx-html-builder:latest'
# credentials:
# username: ${{ secrets.BUILD_USER }}
# password: ${{ secrets.ARTIFACTORY_BUILD_AMSRL }}
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# permissions:
# pages: write
# id-token: write
# steps:
# - name: Setup Pages
# uses: actions/configure-pages@v3
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v2