added checking if destination dir exitst
work.suroh.tk deploy / build-deploy (push) Failing after 19s Details

This commit is contained in:
suroh 2024-02-02 17:11:47 +01:00
parent e3c8560e68
commit 513b4f2f67
1 changed files with 7 additions and 2 deletions

View File

@ -23,5 +23,10 @@ jobs:
- name: Build 11ty site
run: npm run build
- name: Copy built site to data folder
run: mkdir /www/work.suroh.tk && cp -r _site /www/work.suroh.tk
- name: Create folder if needed
run: if [ ! -d /www/work.suroh.tk ]; then
mkdir /www/work.suroh.tk
fi
- name: Copy built website
run: cp -r _site /www/work.suroh.tk