From 96dcc0def7f2b34f74da1089c5625360c7e1c5d2 Mon Sep 17 00:00:00 2001 From: Bernt Popp Date: Wed, 20 Dec 2023 12:20:32 +0100 Subject: [PATCH] feat: add error on no files --- .github/workflows/gh-pages.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index ccae5ae..004fc13 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -54,7 +54,8 @@ jobs: - uses: actions/upload-artifact@v4 with: name: build - path: build/ + path: build + if-no-files-found: error checkout-and-deploy: runs-on: ubuntu-20.04 needs: bookdown @@ -65,9 +66,9 @@ jobs: uses: actions/download-artifact@v4 with: # Artifact name - name: build # optional + name: build # Destination path - path: build/ # optional + path: build - name: Deploy to GitHub Pages uses: Cecilapp/GitHub-Pages-deploy@v3 env: