-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 819 Bytes
/
Copy pathdocs.yml
File metadata and controls
37 lines (31 loc) · 819 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
35
36
37
# SPDX-License-Identifier: Apache-2.0
# Copyright 2026 Bill Halpin
#
# Build Jekyll docs from docs/ and push the output to the gh-pages branch,
# matching the original mkdocs gh-deploy behaviour.
name: Deploy docs to GitHub Pages
on:
push:
branches: [main]
paths:
- docs/**
- .github/workflows/docs.yml
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./docs
destination: ./_site
- name: Push to gh-pages branch
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site