Skip to content

Commit

Permalink
chore: fix the environment in deploy jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
valerymelou committed Jul 14, 2024
1 parent 7e0a205 commit 5d7349d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 5d7349d

Please sign in to comment.