We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a275529 commit 7b880b1Copy full SHA for 7b880b1
.github/workflows/contrib.yml
@@ -29,12 +29,14 @@ jobs:
29
run: |
30
cd src/doc/contrib
31
mdbook build
32
- # Override previous ref to avoid keeping history.
33
- git worktree add --orphan -B gh-pages gh-pages
+ git worktree add gh-pages gh-pages
34
git config user.name "Deploy from CI"
35
git config user.email ""
36
cd gh-pages
+ # Delete the ref to avoid keeping history.
37
+ git update-ref -d refs/heads/gh-pages
38
+ rm -rf contrib
39
mv ../book contrib
40
git add contrib
41
git commit -m "Deploy $GITHUB_SHA to gh-pages"
- git push origin +gh-pages
42
+ git push --force
0 commit comments