From c17995d39107616e979afedcce2f39da6c792dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=B5=B5=E5=90=8C=E5=AD=A6?= <94612053+imzql@users.noreply.github.com> Date: Sun, 28 Jul 2024 08:49:07 +0800 Subject: [PATCH] Update upy.yml --- .github/workflows/upy.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/upy.yml b/.github/workflows/upy.yml index b40f0c85..203c4363 100644 --- a/.github/workflows/upy.yml +++ b/.github/workflows/upy.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout Repository master branch + - name: Checkout Repository uses: actions/checkout@v2 - name: Setup Hugo @@ -23,11 +23,22 @@ jobs: - name: Build static files run: hugo --minify --environment production - - name: Check build output + - name: Check build output directory run: ls -la public - - name: List workspace contents - run: ls -la /github/workspace + - name: Debugging: List all files in workspace + run: | + echo "Listing all files in the workspace directory" + ls -la /github/workspace + + - name: Check if public directory exists + run: | + if [ -d "/github/workspace/public" ]; then + echo "Public directory exists" + else + echo "Public directory does not exist" + exit 1 + fi - name: Deploy to UpYun uses: her-cat/upyun-deployer@v1.0.3