From 33a6300fb48ba38ed90cd406c4d5263cc095556c Mon Sep 17 00:00:00 2001 From: "Alphanome.AI" <137115920+alphanome@users.noreply.github.com> Date: Sat, 7 Oct 2023 06:39:20 +0300 Subject: [PATCH] build(cd): add trigger to deploy website --- .github/workflows/cd.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 900cbba..91ec765 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -36,3 +36,11 @@ jobs: fi poetry build poetry publish --username __token__ --password ${{ secrets.PUBLIC_PYPI_API_TOKEN }} + + - name: Initiate Website Deployment + run: | + curl -X POST \ + -H "Authorization: token ${{ secrets.CI_CD_TRIGGER_GITHUB_TOKEN }}" \ + -H "Accept: application/vnd.github.everest-preview+json" \ + "https://api.github.com/repos/alphanome-ai/sec-ai-deploy/dispatches" \ + --data '{"event_type": "trigger-ci-cd"}'