From 38251d0372d37b0db02a97c366321fa7d6d8c055 Mon Sep 17 00:00:00 2001 From: Vishal Khode Date: Wed, 4 Dec 2024 00:33:20 +0530 Subject: [PATCH] Try dependencies. --- .github/workflows/deployment.workflow.yml | 27 ++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deployment.workflow.yml b/.github/workflows/deployment.workflow.yml index bf84f941a..fa60ad44d 100644 --- a/.github/workflows/deployment.workflow.yml +++ b/.github/workflows/deployment.workflow.yml @@ -3,7 +3,7 @@ on: push: branches: [ develop, main, ACMS-4329 ] jobs: - acquia_code_deployment: + build: if: ${{ github.event_name == 'push' }} name: "Code Deployment on Acquia Environment" env: @@ -72,6 +72,7 @@ jobs: curl -OL https://github.com/acquia/cli/releases/latest/download/acli.phar chmod +x acli.phar mv acli.phar /usr/local/bin/acli + cp /usr/local/bin/acli ./vendor/bin/acli acli --version acli auth:login --key=${ACQUIA_CLOUD_API_KEY} --secret=${ACQUIA_CLOUD_API_SECRET} -n @@ -82,9 +83,33 @@ jobs: ACQUIA_CLOUD_API_KEY: ${{ secrets.ACQUIA_CLOUD_API_KEY }} ACQUIA_CLOUD_API_SECRET: ${{ secrets.ACQUIA_CLOUD_API_SECRET }} ACQUIA_APPLICATION_UUID: ${{ secrets.ACQUIA_APPLICATION_UUID }} +# - name: Upload Project +# uses: actions/upload-artifact@v3 +# with: +# name: project-directory +# path: . + deploy: + runs-on: ubuntu-latest + needs: build + steps: + - name: Checkout code + uses: actions/checkout@v3 + - uses: shivammathur/setup-php@v2 + with: + php-version: 8.3 +# - name: Download Project +# uses: actions/download-artifact@v3 +# with: +# name: project-directory - name: Deploy & Switch Code shell: bash run: | + ls -ltr vendor || true + git log + exit 1 + # Move back acli. + mv ./vendor/bin/acli /usr/local/bin/acli + BRANCH_TO_DEPLOY=acli-${GITHUB_REF_NAME} acli push:artifact ${ACQUIA_CLOUD_ENVIRONMENT} --destination-git-branch=${BRANCH_TO_DEPLOY} -n