File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright IBM Corp. All Rights Reserved.
2
+ #
3
+ # SPDX-License-Identifier: CC-BY-4.0
4
+
5
+ name : Deploy Docs (Github Pages)
6
+
7
+ on :
8
+ push :
9
+ branches :
10
+ - main
11
+ paths :
12
+ - ' docs/**'
13
+
14
+ # Allows you to run this workflow manually from the Actions tab
15
+ workflow_dispatch :
16
+
17
+ jobs :
18
+ deploy-docs :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22
+ - uses : actions/checkout@v4
23
+
24
+ - name : Use Python 3.x
25
+ uses : actions/setup-python@v5
26
+ with :
27
+ python-version : ' 3.10'
28
+ cache : ' pip' # caching pip dependencies
29
+
30
+ - name : Install dependencies
31
+ run : pip install -r requirements.txt
32
+ working-directory : docs
33
+
34
+ - name : Build and publish
35
+ run : git pull && mkdocs gh-deploy
36
+ working-directory : docs
You can’t perform that action at this time.
0 commit comments