Skip to content

Commit

Permalink
generate docs on push, deploy on main
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgerrits committed Oct 4, 2024
1 parent 1f1463e commit 88e1ee2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ name: Docs
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches:
- main
- staging

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -115,6 +117,7 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: [build-02, build-04]
if: ${{ needs.build-02.result == 'success' && needs.build-04.result == 'success' && github.ref == 'refs/heads/main' }}
steps:
- uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 88e1ee2

Please sign in to comment.