Skip to content

Commit 8162efd

Browse files
committed
fix more
1 parent 82c4ccc commit 8162efd

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/build.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@v2
1616
with:
1717
ref: "build"
18-
path: "tutorial/book"
18+
path: "tutorial-build"
1919

2020
- name: Setup mdBook
2121
uses: peaceiris/actions-mdbook@v1
@@ -30,9 +30,12 @@ jobs:
3030
- name: Create build commit
3131
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
3232
run: |
33-
cd tutorial/book
33+
cd tutorial-build
34+
git rm -r *
35+
rm -rf *
3436
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
3537
git config --local user.name "github-actions[bot]"
38+
cp -r ../tutorial/book/* .
3639
git add *
3740
git commit -m "Deploy $(date +'%Y-%m-%d %H:%M:%S')"
3841

0 commit comments

Comments
 (0)