mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Add action for netlify docs build
Now that our docs are hosted on Netlify, we should trigger builds every time a `docs/` file is added
This commit is contained in:
parent
f67e15b8ee
commit
6e31ae6447
15
.github/workflows/main.yml
vendored
Normal file
15
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
name: Build Docs
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- '3.7'
|
||||||
|
- '4'
|
||||||
|
paths:
|
||||||
|
- 'docs/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: build-docs
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Run build hook
|
||||||
|
run: curl -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.NETLIFY_BUILD_HOOK }}
|
Loading…
Reference in New Issue
Block a user