From a0bce79c614ddc1fcd97591a2ff13361b374e986 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 24 May 2022 13:12:51 +0800 Subject: [PATCH] fix: include publish: docs in release-nocodb.yml --- .github/workflows/publish-docs.yml | 10 ++-------- .github/workflows/release-nocodb.yml | 7 ++++++- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 50075f7842..e358e6262d 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -1,14 +1,10 @@ name: "Publish : Docs" on: - push: - branches: [ master ] - paths: - - "packages/noco-docs/**" - release: - types: [ published ] # Triggered manually workflow_dispatch: + # Triggered by release-nocodb.yml + workflow_call: jobs: copy-file: @@ -26,8 +22,6 @@ jobs: cd packages/noco-docs npm install npm run generate - - - name: Pushes generated output uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658 env: diff --git a/.github/workflows/release-nocodb.yml b/.github/workflows/release-nocodb.yml index 22d2ca7df7..03d07a6c52 100644 --- a/.github/workflows/release-nocodb.yml +++ b/.github/workflows/release-nocodb.yml @@ -105,9 +105,14 @@ jobs: DOCKERHUB_USERNAME: "${{ secrets.DOCKERHUB_USERNAME }}" DOCKERHUB_TOKEN: "${{ secrets.DOCKERHUB_TOKEN }}" + # Publish Docs + publish-docs: + needs: release-docker + uses: ./.github/workflows/publish-docs.yml + # Change nocodb-sdk back to local path update-sdk-path: - needs: release-docker + needs: publish-docs uses: ./.github/workflows/update-sdk-path.yml # Sync changes to develop