-
Notifications
You must be signed in to change notification settings - Fork 859
40 lines (39 loc) · 1.19 KB
/
doc-automation.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
on:
push:
branches:
- master
merge_group:
jobs:
build_docs_job:
runs-on: ubuntu-20.04
steps:
- name: Setup Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
architecture: x64
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: |
pip install -r ./docs/sphinx/requirements.txt
- name: Build the docset
run: |
cd ./docs/sphinx
make html
id: build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/sphinx/build/html
CLEAN_EXCLUDE: '["_config.yml"]'
- name: Open issue on failure
if: ${{ failure() && github.event_name == 'schedule' }}
uses: dacbd/create-issue-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: Doc automation failed
body: Commit ${{ github.sha }} daily scheduled [CI run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) failed, please check why
assignees: ''