Skip to content

Commit

Permalink
chore: remove doc building from CD (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadej Svetina committed Jan 4, 2022
1 parent 954acce commit b4a10f7
Showing 1 changed file with 1 addition and 36 deletions.
37 changes: 1 addition & 36 deletions .github/workflows/cd.yml
Expand Up @@ -6,43 +6,8 @@ on:
- main

jobs:
update-doc:
if: |
!startsWith(github.event.head_commit.message, 'chore') &&
!startsWith(github.event.head_commit.message, 'build: hotfix') &&
!endsWith(github.event.head_commit.message, 'reformatted by jina-dev-bot')
runs-on: ubuntu-latest
steps:
- uses: benc-uk/workflow-dispatch@v1
with:
workflow: Manual Docs Build
inputs: '{ "release_token": "${{ env.release_token }}", "triggered_by": "CD"}'
token: ${{ secrets.JINA_DEV_BOT }}
env:
release_token: ${{ secrets.FINETUNER_RELEASE_TOKEN }}
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check if there were changes to docs
id: changed-files-docs
uses: tj-actions/changed-files@v10
with:
files: |
docs/**
- if: steps.changed-files-docs.outputs.any_changed == 'true'
name: Deploy Jina Docsbot
uses: benc-uk/workflow-dispatch@v1
with:
repo: jina-ai/cloud-ops
workflow: Docsbot Deployment Pipeline
inputs: '{ "environment": "prod", "project": "FINETUNER", "branch": "main" }'
ref: "master"
token: ${{ secrets.JINA_DEV_BOT }}


prep-testbed:
runs-on: ubuntu-latest
needs: update-doc
steps:
- uses: actions/checkout@v2
- id: set-matrix
Expand Down Expand Up @@ -97,7 +62,7 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos

prerelease:
needs: [update-doc, core-test]
needs: core-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit b4a10f7

Please sign in to comment.