Browse Source

Auto deploy docs when markdown edited

pull/11/head
Binit Shah 1 year ago
parent
commit
803631572c
1 changed files with 27 additions and 0 deletions
  1. +27
    -0
      .github/workflows/auto_deploy_docs.yaml

+ 27
- 0
.github/workflows/auto_deploy_docs.yaml View File

@ -0,0 +1,27 @@
name: Auto Deploy Docs
run-name: Edit by ${{ github.actor }} triggered docs deployment
on:
push:
branches:
- 'master'
paths:
- '**.md'
jobs:
Dispatch-Deploy-Workflow:
runs-on: ubuntu-latest
steps:
- name: Print out debug info
run: echo "Repo ${{ github.repository }} | Branch ${{ github.ref }} | Runner ${{ runner.os }} | Event ${{ github.event_name }}"
- name: Dispatch deploy workflow
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GHA_CROSSREPO_WORKFLOW_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'hello-robot',
repo: 'hello-robot.github.io',
workflow_id: 'auto_deploy.yaml',
ref: '0.3',
})

Loading…
Cancel
Save