Skip to content

Commit e0a0101

Browse files
added publish workflow -- not tested ...
1 parent b38ef41 commit e0a0101

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: documentation
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
- name: Install dependencies
15+
run: |
16+
pip install -r Sources/requirements.txt
17+
- name: Sphinx build
18+
run: |
19+
make html
20+
# sphinx-build doc _build
21+
- name: Deploy to GitHub Pages
22+
uses: peaceiris/actions-gh-pages@v3
23+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
24+
with:
25+
publish_branch: gh-pages
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
publish_dir: Sources/build/html
28+
force_orphan: true
29+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Interfacing with Compiled Code
2+
==============================
3+
4+
Topics:
5+
-------
6+
7+
.. toctree::
8+
:maxdepth: 1
9+
10+
c_python.rst
11+
fortran_python.rst

0 commit comments

Comments
 (0)