From 3ef8e6f10a3bf0d90d1743b8f540a55bd95161ed Mon Sep 17 00:00:00 2001 From: Sebastien Dubois Date: Fri, 11 Oct 2024 15:55:51 +0200 Subject: [PATCH] chore(all): trying to fix deploy workflow --- .github/workflows/deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f089bec4..d0251b36 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,6 +29,7 @@ jobs: # Create and switch to a new branch before the deployment # This is necessary because the production branch is protected - run: | + git checkout production git checkout -b deploy-${GITHUB_SHA} git push --set-upstream origin deploy-${GITHUB_SHA} - uses: nrwl/nx-set-shas@v4 @@ -53,7 +54,7 @@ jobs: # Clean up the temporary deployment branch - run: | - git checkout main + git checkout production git branch -D deploy-${GITHUB_SHA} git push origin --delete deploy-${GITHUB_SHA} shell: bash