Run git fetch before switching branches
This ensures the desired branch is available. This closes #9.
This commit is contained in:
committed by
BARICHELLO
parent
a80ac562e6
commit
4b40190b44
@@ -55,6 +55,8 @@ deploy-github-pages:
|
||||
dependencies:
|
||||
- web
|
||||
script:
|
||||
# This ensures the `gh-pages` branch is available.
|
||||
- git fetch
|
||||
- git checkout gh-pages
|
||||
- rm -f *.md
|
||||
- mv build/web/** .
|
||||
@@ -71,6 +73,8 @@ pages:
|
||||
dependencies:
|
||||
- web
|
||||
script:
|
||||
# This ensures the `pages` branch is available.
|
||||
- git fetch
|
||||
- git checkout pages
|
||||
- rm -f *.md
|
||||
- mv build/web/** ./public
|
||||
|
||||
Reference in New Issue
Block a user