Skip to content

Commit 5d44741

Browse files
dunglasCopilot
andauthored
ci: deploy docs when they change (#2234)
Signed-off-by: Kévin Dunglas <kevin@dunglas.fr> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 73c7b2e commit 5d44741

2 files changed

Lines changed: 23 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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Deploy Docs
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "docs/**"
9+
- "README.md"
10+
- "CONTRIBUTING.md"
11+
permissions: {}
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
jobs:
16+
deploy:
17+
runs-on: ubuntu-slim
18+
steps:
19+
- name: Trigger website deployment
20+
env:
21+
GH_TOKEN: ${{ secrets.WEBSITE_DEPLOY_TOKEN }}
22+
run: gh api repos/dunglas/frankenphp-website/actions/workflows/hugo.yaml/dispatches -f ref=main

0 commit comments

Comments
 (0)