Skip to content

Add workflow

Add workflow #4

Workflow file for this run

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