From dc836b3c638b7bf6c916aaea383b1bced112efed Mon Sep 17 00:00:00 2001 From: Mykola Fant Date: Wed, 27 Nov 2024 10:36:08 +0200 Subject: [PATCH] combine two workflows --- .github/workflows/build-site.yml | 9 +++++++-- .github/workflows/deploy-docs-workflow.yml | 13 ------------- 2 files changed, 7 insertions(+), 15 deletions(-) delete mode 100644 .github/workflows/deploy-docs-workflow.yml diff --git a/.github/workflows/build-site.yml b/.github/workflows/build-site.yml index 4c821e64c..662d631d0 100644 --- a/.github/workflows/build-site.yml +++ b/.github/workflows/build-site.yml @@ -5,7 +5,12 @@ name: Build production site on: push: branches: [ main, 'v/*' ] + workflow_call: jobs: - dispatch: - uses: ./.github/workflows/deploy-docs-workflow.yml + deploy: + runs-on: ubicloud-standard-2 + steps: + - name: Dispatch docs deployment + # https://docs.netlify.com/configure-builds/build-hooks/ + run: curl -X POST -d {} https://api.netlify.com/build_hooks/60e71936b15bb431b42b698a diff --git a/.github/workflows/deploy-docs-workflow.yml b/.github/workflows/deploy-docs-workflow.yml deleted file mode 100644 index 7c7bbc0f9..000000000 --- a/.github/workflows/deploy-docs-workflow.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Deploy docs -description: Dispatch Netlify production deployment - -on: - workflow_call: - -jobs: - deploy: - runs-on: ubicloud-standard-2 - steps: - - name: Dispatch docs deployment - # https://docs.netlify.com/configure-builds/build-hooks/ - run: curl -X POST -d {} https://api.netlify.com/build_hooks/60e71936b15bb431b42b698a