From 7fc5da5f2e870d6357ee17c7def0aed0045a11af Mon Sep 17 00:00:00 2001 From: Anton Shevchuk Date: Wed, 26 Jun 2024 16:04:24 +0200 Subject: [PATCH] Try to migrate to new upload scenario --- .github/workflows/pages.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index c8c5727..8ecd529 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -58,8 +58,13 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - # Upload entire repository path: './public' + - name: Verify artifact upload + run: | + if [ -z "$(ls -A ./public)" ]; then + echo "No files found in public directory, upload will fail." + exit 1 + fi - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v3