Skip to content

Commit 2a8485d

Browse files
committed
ci: deploy docs when they change
1 parent 27ff6b4 commit 2a8485d

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Build Docker images
2+
name: Build Docker Images
33
concurrency:
44
cancel-in-progress: true
55
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/docs.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Deploy Docs
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "docs/**"
9+
- "README.md"
10+
- "CONTRIBUTING.md"
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Trigger website deployment
16+
env:
17+
GH_TOKEN: ${{ secrets.WEBSITE_DEPLOY_TOKEN }}
18+
run: gh api repos/dunglas/frankenphp-website/actions/workflows/hugo.yaml/dispatches -f ref=main

0 commit comments

Comments
 (0)