Skip to content

Commit c963168

Browse files
update build
1 parent 610eb7c commit c963168

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
cd /home/ubuntu
3333
[ -d DDNDoc ] && rm -rf DDNDoc
3434
[ -d document-normalizer-docs ] && rm -rf document-normalizer-docs
35-
[ -d Docs-Template-Repo ] && rm -rf Docs-Template-Repo
35+
[ -d Docs-Template-Repo-Preview ] && rm -rf Docs-Template-Repo-Preview
3636
[ ! -d DDNDoc ] && mkdir -p DDNDoc
37-
git clone --depth 1 --branch preview https://github.com/dynamsoft-docs/document-normalizer-docs.git document-normalizer-docs
38-
git clone --depth 1 --branch preview https://github.com/dynamsoft-docs/Docs-Template-Repo.git Docs-Template-Repo
37+
git clone --depth 1 https://github.com/dynamsoft-docs/document-normalizer-docs.git document-normalizer-docs
38+
git clone --depth 1 --branch preview https://github.com/dynamsoft-docs/Docs-Template-Repo.git Docs-Template-Repo-Preview
3939
cp -rfp ./document-normalizer-docs/* ./DDNDoc/
40-
cp -rfp ./Docs-Template-Repo/* ./DDNDoc/
40+
cp -rfp ./Docs-Template-Repo-Preview/* ./DDNDoc/
4141
cd DDNDoc && bundle exec jekyll build --incremental
4242
4343
- name: Sync files
@@ -63,20 +63,17 @@ jobs:
6363
cd /home/ubuntu
6464
[ -d DDNDocPreview ] && rm -rf DDNDocPreview
6565
[ -d document-normalizer-docs-preview ] && rm -rf document-normalizer-docs-preview
66-
[ -d Docs-Template-Repo-Preview-DCV2 ] && rm -rf Docs-Template-Repo-Preview-DCV2
66+
[ -d Docs-Template-Repo-Preview ] && rm -rf Docs-Template-Repo-Preview
6767
cd /home/ubuntu
6868
6969
- name: Build the site
7070
run: |
7171
cd /home/ubuntu
72-
[ -d DDNDocPreview ] && rm -rf DDNDocPreview
73-
[ -d document-normalizer-docs-preview ] && rm -rf document-normalizer-docs-preview
74-
[ -d Docs-Template-Repo-Preview-DCV2 ] && rm -rf Docs-Template-Repo-Preview-DCV2
7572
[ ! -d DDNDocPreview ] && mkdir -p DDNDocPreview
7673
git clone --depth 1 --branch preview https://${{ secrets.GIT_USER }}:${{ secrets.GIT_PAT }}@github.com/dynamsoft-docs/document-normalizer-docs.git document-normalizer-docs-preview
77-
git clone --depth 1 --branch jenny-preview-branch https://github.com/dynamsoft-docs/Docs-Template-Repo.git Docs-Template-Repo-Preview-DCV2
74+
git clone --depth 1 --branch preview https://github.com/dynamsoft-docs/Docs-Template-Repo.git Docs-Template-Repo-Preview
7875
cp -rfp ./document-normalizer-docs-preview/* ./DDNDocPreview/
79-
cp -rfp ./Docs-Template-Repo-Preview-DCV2/* ./DDNDocPreview/
76+
cp -rfp ./Docs-Template-Repo-Preview/* ./DDNDocPreview/
8077
sed -i -e "1,3s/blob\/master$/blob\/preview/" \
8178
-e "1,3s/blob\/main$/blob\/preview/" /home/ubuntu/DDNDocPreview/_config.yml
8279
cd DDNDocPreview && bundle exec jekyll build --incremental

0 commit comments

Comments
 (0)