Skip to content

Commit 75ba083

Browse files
committed
fix: improve .nojekyll file creation with directory check
1 parent cbc6bc7 commit 75ba083

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@ jobs:
4242
NODE_ENV: production
4343

4444
- name: Add .nojekyll file
45-
run: touch ./out/.nojekyll
45+
run: |
46+
if [ -d "./out" ]; then
47+
touch ./out/.nojekyll
48+
else
49+
echo "Error: out directory does not exist"
50+
ls -la
51+
exit 1
52+
fi
4653
4754
- name: Upload artifact
4855
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)