Skip to content

Commit ca1a0e4

Browse files
authored
Add workflow to build and deploy documentation (#237)
1 parent 93cc440 commit ca1a0e4

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/docs.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: docs
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-and-deploy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-python@v1
11+
with:
12+
python-version: '3.x'
13+
- name: Install dependencies
14+
run: pip install ford
15+
- name: Build Documentation
16+
run: ford docs.md
17+
- uses: JamesIves/[email protected]
18+
if: github.event_name == 'push' && github.repository == 'fortran-lang/fpm' && ( startsWith( github.ref, 'refs/tags/' ) || github.ref == 'refs/heads/master' )
19+
with:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
BRANCH: gh-pages
22+
FOLDER: fpm-doc
23+
CLEAN: true
24+

0 commit comments

Comments
 (0)