mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
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>
This commit is contained in:
2
.github/workflows/docker.yaml
vendored
2
.github/workflows/docker.yaml
vendored
@@ -1,5 +1,5 @@
|
||||
---
|
||||
name: Build Docker images
|
||||
name: Build Docker Images
|
||||
concurrency:
|
||||
cancel-in-progress: true
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
||||
22
.github/workflows/docs.yaml
vendored
Normal file
22
.github/workflows/docs.yaml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
name: Deploy Docs
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "docs/**"
|
||||
- "README.md"
|
||||
- "CONTRIBUTING.md"
|
||||
permissions: {}
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-slim
|
||||
steps:
|
||||
- name: Trigger website deployment
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.WEBSITE_DEPLOY_TOKEN }}
|
||||
run: gh api repos/dunglas/frankenphp-website/actions/workflows/hugo.yaml/dispatches -f ref=main
|
||||
Reference in New Issue
Block a user