Skip to content

Commit 182832b

Browse files
committed
Merge branch 'master' of https://github.com/sw360/sw360python
2 parents 955e835 + eb1c0ce commit 182832b

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build documentation and deploy
2+
on: [push]
3+
jobs:
4+
build-and-deploy:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
python-version: [3.8]
9+
10+
steps:
11+
- name: Checkout 🛎️
12+
uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
13+
with:
14+
persist-credentials: false
15+
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install sphinx
25+
# WARNING: The scripts sphinx-apidoc, sphinx-autogen, sphinx-build and sphinx-quickstart are installed in '/home/runner/.local/bin' which is not on PATH.
26+
27+
- name: Build documentation
28+
run: |
29+
# use sphinx to build the documentation
30+
#
31+
#/home/runner/.local/bin/sphinx-build -b html ./docs/source ./docs/build
32+
sphinx-build -b html ./docs ./build
33+
34+
- name: Deploy 🚀
35+
uses: JamesIves/github-pages-deploy-action@4.1.3
36+
with:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
BRANCH: gh-pages # The branch the action should deploy to.
39+
FOLDER: ./build # The folder the action should deploy.
40+
CLEAN: true # Automatically remove deleted files from the deploy branch

0 commit comments

Comments
 (0)