ci: add doc deploy webhook trigger (#23828)

This commit is contained in:
Daniel Roe 2023-10-20 16:22:41 +01:00 committed by GitHub
parent 785b7a3f6e
commit 2f7e1c7827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
.github/workflows/docs-deploy.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Deploy docs
on:
push:
paths:
- "docs/**"
branches:
- main
# Remove default permissions of GITHUB_TOKEN for security
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
permissions: {}
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- if: ${{ github.repository_owner == 'nuxt' && github.event_name == 'push' }}
run: curl "${{ secrets.DOCS_WEBHOOK }}"