Gitea actions testing
All checks were successful
Build MkDocs / build-and-deploy (push) Successful in 1s
All checks were successful
Build MkDocs / build-and-deploy (push) Successful in 1s
This commit is contained in:
@@ -16,15 +16,23 @@ jobs:
|
||||
- name: Clone repository
|
||||
run: |
|
||||
git clone --branch main https://git.tishenko.dev/tish/knowledge-base.git
|
||||
pwd
|
||||
echo "execute cd"
|
||||
cd knowledge-base
|
||||
pwd
|
||||
|
||||
- name: Build site
|
||||
run: |
|
||||
pwd
|
||||
cd knowledge-base
|
||||
pwd
|
||||
echo "Before mkdocs build"
|
||||
mkdocs build
|
||||
|
||||
- name: Deploy site
|
||||
run: |
|
||||
# Удаляем только содержимое /var/www/knowledge-base,
|
||||
# чтобы сохранить права и владельца самой папки
|
||||
cd knowledge-base
|
||||
rm -rf /var/www/knowledge-base/*
|
||||
cp -r site/ /var/www/knowledge-base/site/
|
||||
|
||||
Reference in New Issue
Block a user