Skip to content

Commit 9f0cdfc

Browse files
author
Louis Nicolas Stenger
committed
Add workflow
1 parent df2a804 commit 9f0cdfc

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/sphinx.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Sphinx: Build Fortran90.org"
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Build HTML
19+
uses: ammaraskar/sphinx-action@master
20+
with:
21+
docs-folder: "./"
22+
- name: Upload artifacts
23+
uses: actions/upload-artifact@v4
24+
with:
25+
name: html-docs
26+
path: _build/html/
27+
- name: Deploy
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: _build/html

0 commit comments

Comments
 (0)