From 5d7349d4429ac0f7912029b8a19dc673859c0ed8 Mon Sep 17 00:00:00 2001 From: Valery Melou Date: Sun, 14 Jul 2024 22:17:05 +0100 Subject: [PATCH] chore: fix the environment in deploy jobs --- .github/workflows/cd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 3366ae2..944736f 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -10,7 +10,7 @@ jobs: VM_CONTENTFUL_ACCESS_TOKEN: ${{ secrets.VM_CONTENTFUL_ACCESS_TOKEN }} VM_CONTENTFUL_ENVIRONMENT: ${{ github.ref == 'refs/heads/master' && 'production' || 'staging' }} outputs: - ENVIRONMENT: ${{ github.ref == 'refs/heads/master' && 'production' || 'staging' }} + ENVIRONMENT: ${{ env.VM_CONTENTFUL_ENVIRONMENT }} steps: - uses: actions/checkout@v4 @@ -26,7 +26,7 @@ jobs: - name: Archive artifacts uses: actions/upload-artifact@v4 with: - name: build-output-${{ env.ENVIRONMENT }} + name: build-output-${{ env.VM_CONTENTFUL_ENVIRONMENT }} path: | dist