Skip to content

Commit 704b462

Browse files
author
ChazSchmidt
committed
Update build and deploy workflow to compare Forge docs
1 parent c14f4b4 commit 704b462

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/docs.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Deploy Forge Docs
1+
name: Build and Compare Forge Docs
22

33
on:
44
push:
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: true
1111

12-
name: Build and deploy forge docs
12+
name: Build and compare forge docs
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v3
@@ -32,9 +32,6 @@ jobs:
3232
forge doc --build
3333
id: doc
3434

35-
- name: Deploy GitHub Pages site
36-
uses: peaceiris/actions-gh-pages@v3
37-
with:
38-
github_token: ${{ secrets.GITHUB_TOKEN }}
39-
publish_dir: docs/book
40-
publish_branch: gh-pages
35+
- name: Compare docs
36+
run: |
37+
git diff --quiet || (echo "Docs were not built before commit" && exit 1)

0 commit comments

Comments
 (0)