-
Notifications
You must be signed in to change notification settings - Fork 12
34 lines (27 loc) · 849 Bytes
/
Copy pathpublish.yaml
File metadata and controls
34 lines (27 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT
name: Publish cbmc-viewer documentation
on:
push:
branches:
- 'documentation'
permissions:
contents: write
pages: write
jobs:
publish:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install mdbook
run: brew install mdbook
- name: Build documentation
run: cd docs && mdbook build && touch book/.nojekyll
- name: Publish documentation
uses: JamesIves/github-pages-deploy-action@v4.7.6
with:
branch: gh-pages
folder: docs/book/
# This conditional might be useful on the publish step in the future
# if: ${{ github.event_name == 'push' && startsWith('refs/heads/master', github.ref) }}