Skip to content

Commit

Permalink
add_workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
elephaint committed Oct 16, 2024
1 parent ea69e21 commit e79a940
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ jobs:
run: cp nbs/mint.json _docs/mint.json && cp docs-scripts/imgs/* _docs/

- name: Deploy to Mintlify Docs
if: github.event_name == 'push'
if: |
github.event_name == 'release' ||
github.event_name == 'workflow_dispatch'
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -56,7 +58,9 @@ jobs:
user_email: 41898282+github-actions[bot]@users.noreply.github.com

- name: Trigger mintlify workflow
if: github.event_name == 'push'
if: |
github.event_name == 'release' ||
github.event_name == 'workflow_dispatch'
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ secrets.DOCS_WORKFLOW_TOKEN }}
Expand All @@ -72,7 +76,9 @@ jobs:
run: python docs-scripts/configure-redirects.py neuralforecast

- name: Deploy to Github Pages
if: github.event_name == 'push'
if: |
github.event_name == 'release' ||
github.event_name == 'workflow_dispatch'
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit e79a940

Please sign in to comment.