Skip to content

Commit

Permalink
Add check for existence of dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
giovamuge committed Feb 15, 2024
1 parent 988e9d8 commit 56bed81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ jobs:
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Dist folder exist
run: |
if [ ! -d "dist" ]; then
echo "dist folder does not exist"
exit 1
fi
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit 56bed81

Please sign in to comment.