From df390f8e9ab6d12db4000d77781401e1d68a6e17 Mon Sep 17 00:00:00 2001 From: Binit Shah Date: Tue, 12 Sep 2023 23:09:51 -0400 Subject: [PATCH] Add Github Action to deploy docs on markdown change --- .github/workflows/auto_deploy_docs.yaml | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/auto_deploy_docs.yaml diff --git a/.github/workflows/auto_deploy_docs.yaml b/.github/workflows/auto_deploy_docs.yaml new file mode 100644 index 0000000..8f82035 --- /dev/null +++ b/.github/workflows/auto_deploy_docs.yaml @@ -0,0 +1,26 @@ +name: Auto Deploy Docs +run-name: Edit by ${{ github.actor }} triggered docs deployment +on: + push: + branches: + - 'noetic' + 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-scripts@v6 + with: + script: | + await github.rest.actions.createWorkflowDispatch({ + owner: 'hello-robot', + repo: 'hello-robot.github.io', + workflow_id: 'auto_deploy.yaml', + ref: '0.3', + })