Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Nicolas Stenger committed Nov 14, 2024
1 parent df2a804 commit 122a3fe
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Sphinx: Build Fortran90.org"

on:
push:
branches:
- "master"


permissions:
contents: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build HTML
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "./"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: _build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html

0 comments on commit 122a3fe

Please sign in to comment.