Skip to content

Commit 3130c45

Browse files
committed
Distinct publish
Signed-off-by: Ry Jones <[email protected]>
1 parent 5fe4c32 commit 3130c45

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

0 commit comments

Comments
 (0)