Skip to content

Commit

Permalink
CI: Always try building docs. Only deploy if pushed on dev of nf-core…
Browse files Browse the repository at this point in the history
…/tools
  • Loading branch information
ewels committed Mar 16, 2022
1 parent 348b105 commit 9295189
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tools-api-docs-dev.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: nf-core/tools dev API docs
on:
push:
branches: [dev]
# Run on push and PR to test that docs build
on: [pull_request, push]

jobs:
api-docs:
Expand All @@ -27,7 +26,8 @@ jobs:
run: make --directory ./docs/api html

- name: Sync dev docs
if: github.repository == 'nf-core/tools'
# Only sync with the website if it was a push from nf-core/tools dev branch
if: github.repository == 'nf-core/tools' && github.event.type == 'push' && github.event.base_ref == 'refs/heads/dev'
uses: SamKirkland/FTP-Deploy-Action@4.0.0
with:
server: ${{ secrets.ftp_server }}
Expand Down

0 comments on commit 9295189

Please sign in to comment.