Skip to content

Commit

Permalink
CD: try to fix race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascolley committed Sep 30, 2024
1 parent 7148c43 commit 13dc1ef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Docs Deploy

on:
push:
workflow_run:
workflows: ["Docs Build"]
types: [completed]
branches:
- main
- "main"

jobs:
docs-deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.event == 'push' }}
environment:
name: docs-deploy
steps:
Expand All @@ -27,4 +30,3 @@ jobs:
with:
folder: docs/build/
ssh-key: ${{ secrets.DEPLOY_KEY }}
force: yes

0 comments on commit 13dc1ef

Please sign in to comment.