aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/docs.yml
diff options
context:
space:
mode:
authorSebastian Ehlert <28669218+awvwgk@users.noreply.github.com>2020-11-14 17:08:43 +0100
committerGitHub <noreply@github.com>2020-11-14 17:08:43 +0100
commitca1a0e4f50db32770b6e9aa60db9ce0b660b5bf8 (patch)
treea98ecfdbdde835d8f882649bf0b8f9157f0ce44c /.github/workflows/docs.yml
parent93cc44017e413a32188fed34dd60d4b710ad5ac3 (diff)
downloadfpm-ca1a0e4f50db32770b6e9aa60db9ce0b660b5bf8.tar.gz
fpm-ca1a0e4f50db32770b6e9aa60db9ce0b660b5bf8.zip
Add workflow to build and deploy documentation (#237)
Diffstat (limited to '.github/workflows/docs.yml')
-rw-r--r--.github/workflows/docs.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
new file mode 100644
index 0000000..0bb9d4b
--- /dev/null
+++ b/.github/workflows/docs.yml
@@ -0,0 +1,24 @@
+name: docs
+
+on: [push, pull_request]
+
+jobs:
+ build-and-deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v1
+ with:
+ python-version: '3.x'
+ - name: Install dependencies
+ run: pip install ford
+ - name: Build Documentation
+ run: ford docs.md
+ - uses: JamesIves/github-pages-deploy-action@3.6.1
+ if: github.event_name == 'push' && github.repository == 'fortran-lang/fpm' && ( startsWith( github.ref, 'refs/tags/' ) || github.ref == 'refs/heads/master' )
+ with:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ BRANCH: gh-pages
+ FOLDER: fpm-doc
+ CLEAN: true
+