Skip to content

Commit a841525

Browse files
committed
CI: fix gh-pages deploy job
1 parent 65d5615 commit a841525

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/pages.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,15 @@ jobs:
3939
git checkout gh-pages
4040
4141
- name: 'Copy build artifact'
42-
run: rm -rf ./draft && cp -R ./build/draft ./draft
42+
run: |
43+
rm -rf ./draft && cp -R ./build/draft ./draft
4344
4445
- name: 'Commit changes'
45-
run: git add . && git commit -m "Deploy: ${{ github.sha }}"
46+
continue-on-error: true # needed when diff is empty
47+
run: |
48+
git add . && git commit -m "Deploy: ${{ github.sha }}"
4649
4750
- name: 'Push changes'
4851
if: success()
49-
run: git push origin gh-pages
52+
run: |
53+
git push origin gh-pages

0 commit comments

Comments
 (0)