Reordered checkout in gitlab-ci script

Reordered checkout so it doesnt error out on overwriting untracked files.
This commit is contained in:
BARICHELLO
2018-10-31 00:57:38 -03:00
parent 1362d97c87
commit 65bfe69015
2 changed files with 2 additions and 3 deletions

View File

@@ -65,12 +65,11 @@ deploy-github-pages:
- web
script:
- cd ../
- git checkout gh-pages
- mv game/build/web/** .
- rm README.md
- git config user.email artur@barichello.me
- git config user.name abarichello
- git remote add github $REMOTE_URL
- git checkout gh-pages
- git add -A
- 'git commit -m "Auto: Deploy GitHub Page $EXPORT_NAME-$CI_JOB_NAME$" -m "Deploy from GitLab pipeline \#$CI_PIPELINE_ID"'
- git push github gh-pages -f