-
-
Notifications
You must be signed in to change notification settings - Fork 195
27 lines (23 loc) · 810 Bytes
/
gh-pages-deployment.yml
File metadata and controls
27 lines (23 loc) · 810 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
name: Build and deploy to GitHub Pages
on:
repository_dispatch:
types: [documentation-update-event]
push:
branches:
- develop
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Update snapshot links
run: ./_scripts/create-snapshot-links.sh
- name: Build
run: docker run --privileged -i --rm -p 4000:4000 -e LC_ALL=C.UTF-8 -e LANG=C.UTF-8 -v $(pwd):/site debezium/website-builder bash -c "rake clean build[production]"
# Use GitHub Actions' cache to shorten build times and decrease load on servers
- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
publish_branch: gh-pages
cname: debezium.io