From 2db6c541cc719091a611e9edaa018c5e63f6119c Mon Sep 17 00:00:00 2001 From: Andrea Hrelja <151508315+andhreljaKern@users.noreply.github.com> Date: Thu, 7 Nov 2024 22:10:39 +0700 Subject: [PATCH] ci(cd): add dc deploy workflow for tag releases (#269) --- .github/workflows/dc_deploy.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/dc_deploy.yml diff --git a/.github/workflows/dc_deploy.yml b/.github/workflows/dc_deploy.yml new file mode 100644 index 00000000..2c6b416e --- /dev/null +++ b/.github/workflows/dc_deploy.yml @@ -0,0 +1,22 @@ +name: 'DC: Prepare Deployment' # rename + +on: + # workflow_dispatch: + release: + types: [prereleased] + pull_request: + branches: + - dev + types: [closed] + +# Special permissions required for OIDC authentication +permissions: + id-token: write + contents: read + actions: read + +jobs: + call-dc-release: + uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/dc_release.yml@dev + if: github.event_name == 'pull_request' && github.event.pull_request.merged || github.event_name == 'release' + secrets: inherit