This commit is contained in:
parent
52d95552dd
commit
dc9ec27c3a
@ -15,10 +15,9 @@ steps:
|
|||||||
- git config --global user.email "ci@polynom.me"
|
- git config --global user.email "ci@polynom.me"
|
||||||
- git config --global user.name "polynom.me CI system"
|
- git config --global user.name "polynom.me CI system"
|
||||||
- git config --global --add safe.directory $CI_WORKSPACE/$CI_REPO_OWNER/$CI_REPO_NAME/deploy
|
- git config --global --add safe.directory $CI_WORKSPACE/$CI_REPO_OWNER/$CI_REPO_NAME/deploy
|
||||||
- git clone -b pages $CI_REPO_CLONE_URL deploy
|
- git init -b pages public
|
||||||
- cd deploy
|
- cd public
|
||||||
- git remote set-url origin https://$GIT_PUSH_TOKEN@git.polynom.me/$CI_REPO_OWNER/$CI_REPO_NAME.git
|
- git remote set-url origin https://$GIT_PUSH_TOKEN@git.polynom.me/$CI_REPO_OWNER/$CI_REPO_NAME.git
|
||||||
- cp -rf ../public/* .
|
|
||||||
- git add --all
|
- git add --all
|
||||||
- git commit -m "Deploy new version $CI_COMMIT_SHA"
|
- git commit -m "Deploy new version $CI_COMMIT_SHA"
|
||||||
- git push -u origin pages
|
- git push -u origin -f pages
|
Loading…
Reference in New Issue
Block a user