Skip to content

Commit

Permalink
Add step to ensure artifact is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
pgilad committed Jun 3, 2024
1 parent e3554f7 commit 88a3867
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,22 @@ jobs:
!./media/**/*
!./src/**/*
ensure-valid-artifact:
name: Ensure valid artifact
runs-on: ${{ env.DEFAULT_OS_VERSION }}
needs: build
steps:
- uses: actions/download-artifact@v4
with:
name: build-${{ env.DEFAULT_OS_VERSION }}-${{ env.DEFULAT_NODE_VERSION }}
- name: Check artifact
run: test -d "./dist"

deploy-docs:
name: Deploy Docs
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: ${{ env.DEFAULT_OS_VERSION }}
needs: build
needs: [build, ensure-valid-artifact]
steps:
- uses: actions/download-artifact@v4
with:
Expand All @@ -98,7 +109,7 @@ jobs:
name: Deploy NPM
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: ${{ env.DEFAULT_OS_VERSION }}
needs: build
needs: [build, ensure-valid-artifact]
steps:
- uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 88a3867

Please sign in to comment.