Update upy.yml
This commit is contained in:
1 parent
4ebf2dd49e
commit
852b55fe18
1 file changed
+15
-4
@@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository master branch
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
@@ -23,11 +23,22 @@ jobs:
|
|||||||
- name: Build static files
|
- name: Build static files
|
||||||
run: hugo --minify --environment production
|
run: hugo --minify --environment production
|
||||||
|
|
||||||
- name: Check build output
|
- name: Check build output directory
|
||||||
run: ls -la public
|
run: ls -la public
|
||||||
|
|
||||||
- name: List workspace contents
|
- name: Debugging: List all files in workspace
|
||||||
run: ls -la /github/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
|
- name: Deploy to UpYun
|
||||||
uses: her-cat/upyun-deployer@v1.0.3
|
uses: her-cat/upyun-deployer@v1.0.3
|
||||||
|
|||||||
Reference in new issue
Block a user