Skip to content

Commit 7b880b1

Browse files
authored
Revert "ci/contrib: do not fail on missing gh-pages"
1 parent a275529 commit 7b880b1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/contrib.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ jobs:
2929
run: |
3030
cd src/doc/contrib
3131
mdbook build
32-
# Override previous ref to avoid keeping history.
33-
git worktree add --orphan -B gh-pages gh-pages
32+
git worktree add gh-pages gh-pages
3433
git config user.name "Deploy from CI"
3534
git config user.email ""
3635
cd gh-pages
36+
# Delete the ref to avoid keeping history.
37+
git update-ref -d refs/heads/gh-pages
38+
rm -rf contrib
3739
mv ../book contrib
3840
git add contrib
3941
git commit -m "Deploy $GITHUB_SHA to gh-pages"
40-
git push origin +gh-pages
42+
git push --force

0 commit comments

Comments
 (0)