Skip to content

Commit e5bf195

Browse files
author
Mark R. Tuttle
committed
Add documentation publication workflow
1 parent 4881b24 commit e5bf195

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish CBMC Proof Debugger documentation
2+
on: [push, pull_request]
3+
4+
jobs:
5+
publish:
6+
runs-on: macos-latest
7+
steps:
8+
- name: Checkout repository
9+
uses: actions/checkout@v2
10+
11+
- name: Install mdbook
12+
run: brew install mdbook
13+
14+
- name: Build documentation
15+
run: cd docs && mdbook build && touch book/.nojekyll
16+
17+
- name: Publish documentation
18+
if: ${{ github.event_name == 'push' && startsWith('refs/heads/main', github.ref) }}
19+
uses: JamesIves/[email protected]
20+
with:
21+
branch: gh-pages
22+
folder: docs/book/

0 commit comments

Comments
 (0)