Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Heavyrisem committed Feb 27, 2024
1 parent 5979c52 commit ce7e603
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-build-reuseable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ jobs:
uses: actions/download-artifact@v3
if: ${{ inputs.type == 'frontend'}}
with:
name: node-build-artifact-${{ env.REF_NAME_SHA }}
name: node-build-artifact-frontend-${{ env.REF_NAME_SHA }}
path: ./apps/frontend/.next

- name: Download Build Artifact
uses: actions/download-artifact@v3
if: ${{ inputs.type == 'backend'}}
with:
name: node-build-artifact-${{ env.REF_NAME_SHA }}
name: node-build-artifact-backend-${{ env.REF_NAME_SHA }}
path: ./apps/backend/dist

- name: Check dist .next
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/node-build-reuseable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ jobs:
- name: Build Node.js
run: pnpm build --filter ${{ inputs.type }}

- name: Check dist hash
- name: Check dist .next
if: ${{ inputs.type == 'frontend'}}
run: echo ${{ hashFiles('./apps/frontend/dist/**/*') }}
run: echo ${{ hashFiles('./apps/frontend/.next/**/*') }}

- name: Check dist hash
if: ${{ inputs.type == 'backend' }}
Expand All @@ -66,12 +66,12 @@ jobs:
uses: actions/upload-artifact@v3
if: ${{ inputs.type == 'frontend' }}
with:
name: node-build-artifact-${{ env.REF_NAME_SHA }}
path: ./apps/frontend/dist
name: node-build-artifact-frontend-${{ env.REF_NAME_SHA }}
path: ./apps/frontend/.next

- name: Upload Build Artifact
uses: actions/upload-artifact@v3
if: ${{ inputs.type == 'backend' }}
with:
name: node-build-artifact-${{ env.REF_NAME_SHA }}
name: node-build-artifact-backend-${{ env.REF_NAME_SHA }}
path: ./apps/backend/dist

0 comments on commit ce7e603

Please sign in to comment.