Skip to content

Commit

Permalink
chore: fix how artifacts are named
Browse files Browse the repository at this point in the history
  • Loading branch information
valerymelou committed Jul 14, 2024
1 parent dd4ad90 commit 7e0a205
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
VM_CONTENTFUL_SPACE: ${{ secrets.VM_CONTENTFUL_SPACE }}
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' }}
steps:
- uses: actions/checkout@v4

Expand All @@ -24,7 +26,7 @@ jobs:
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: build-output-${{ github.ref_name }}
name: build-output-${{ env.ENVIRONMENT }}
path: |
dist
Expand All @@ -40,7 +42,7 @@ jobs:
uses: actions/download-artifact@v4
with:
path: dist
name: build-output-${{ github.ref_name }}
name: build-output-${{ needs.build.outputs.ENVIRONMENT }}

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
Expand All @@ -61,7 +63,7 @@ jobs:
uses: actions/download-artifact@v4
with:
path: dist
name: build-output-${{ github.ref_name }}
name: build-output-${{ needs.build.outputs.ENVIRONMENT }}

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
Expand All @@ -82,7 +84,7 @@ jobs:
uses: actions/download-artifact@v4
with:
path: dist
name: build-output-${{ github.ref_name }}
name: build-output-${{ needs.build.outputs.ENVIRONMENT }}

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
Expand Down

0 comments on commit 7e0a205

Please sign in to comment.