Skip to content

Commit 4e52a0c

Browse files
github workshop
1 parent 005ad1d commit 4e52a0c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
# github_token: ${{ secrets.GITHUB_TOKEN }}
4040
# publish_dir: workshop/site
4141

42-
name: Build and Deploy MkDocs Site into /docs
42+
name: Deploy MkDocs site to GitHub Pages
4343

4444
on:
4545
push:
@@ -64,8 +64,12 @@ jobs:
6464
pip install mkdocs-material mkdocs-jupyter
6565
6666
- name: Build and move site to /docs
67+
working-directory: docs/workshop
6768
run: |
68-
cd workshop
6969
mkdocs build
70-
rm -rf ../docs/*
71-
cp -r site/* ../docs/
70+
rm -rf ../../site-deploy-temp/
71+
mkdir -p ../../site-deploy-temp/
72+
cp -r site/* ../../site-deploy-temp/
73+
rm -rf ../../*
74+
mkdir ../../docs
75+
cp -r ../../site-deploy-temp/* ../../docs/

0 commit comments

Comments
 (0)