Skip to content

Commit 1ab2700

Browse files
committed
docs: auto build the docs website
Signed-off-by: Ali Maredia <amaredia@redhat.com>
1 parent 5277048 commit 1ab2700

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,14 @@ jobs:
4646
uses: DavidAnson/markdownlint-cli2-action@eb5ca3ab411449c66620fe7f1b3c9e10547144b0 # v18.0.0
4747
with:
4848
globs: '**/*.md'
49+
docs:
50+
runs-on: ubuntu-latest
51+
steps:
52+
- name: Deploy to GitHub Pages
53+
uses: peaceiris/actions-gh-pages@v3
54+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
55+
with:
56+
publish_branch: gh-pages
57+
github_token: ${{ secrets.GITHUB_TOKEN }}
58+
publish_dir: _build/
59+
force_orphan: true

0 commit comments

Comments
 (0)