Skip to content

Commit d0462d0

Browse files
committed
Update build_page.yml
1 parent 597cb07 commit d0462d0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/build_page.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
- name: Copy Files
3535
run: |
3636
if [ "${{ github.ref_name }}" = "main" ]; then
37-
cp -r `find * | grep -v gh-pages` *.md gh-pages/;
37+
cp -r `find * | grep -v "^gh-pages\(/\|$\)"` gh-pages/;
3838
else
3939
if [ ! -d gh-pages/dev ]; then
4040
mkdir gh-pages/dev;
4141
fi
42-
cp -r `find * | grep -v "^gh-pages/"` *.md gh-pages/dev/;
42+
cp -r `find * | grep -v "^gh-pages\(/\|$\)"` gh-pages/dev/;
4343
fi
4444
- name: Commit files
4545
working-directory: gh-pages
@@ -51,7 +51,6 @@ jobs:
5151
else
5252
git add dev/*;
5353
fi
54-
git status
5554
git commit -m "[${{ github.ref_name }}] ${{ github.event.head_commit.message }}" -a
5655
- name: Push changes
5756
uses: ad-m/github-push-action@master

0 commit comments

Comments
 (0)