Remove only tags; Remove readme.md
Updated gitlab-ci script to remove all markdown files which can interfere with index.html in gh-pages. Removed all 'only' tags.
This commit is contained in:
@@ -1,14 +1,15 @@
|
|||||||
image: barichello/godot-ci:3.0.2
|
image: barichello/godot-ci:3.1
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
EXPORT_NAME: gamine
|
EXPORT_NAME: gameoff
|
||||||
|
GIT_EMAIL: artur@barichello.me
|
||||||
|
GIT_USERNAME: abarichello
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- export
|
- export
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- cd game
|
|
||||||
- mkdir -v -p build/linux
|
- mkdir -v -p build/linux
|
||||||
- mkdir -v -p build/windows
|
- mkdir -v -p build/windows
|
||||||
- mkdir -v -p build/mac
|
- mkdir -v -p build/mac
|
||||||
@@ -21,9 +22,7 @@ linux:
|
|||||||
artifacts:
|
artifacts:
|
||||||
name: $EXPORT_NAME-$CI_JOB_NAME
|
name: $EXPORT_NAME-$CI_JOB_NAME
|
||||||
paths:
|
paths:
|
||||||
- game/build/linux
|
- build/linux
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
stage: export
|
stage: export
|
||||||
@@ -32,9 +31,7 @@ windows:
|
|||||||
artifacts:
|
artifacts:
|
||||||
name: $EXPORT_NAME-$CI_JOB_NAME
|
name: $EXPORT_NAME-$CI_JOB_NAME
|
||||||
paths:
|
paths:
|
||||||
- game/build/windows
|
- build/windows
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
|
|
||||||
mac:
|
mac:
|
||||||
stage: export
|
stage: export
|
||||||
@@ -43,9 +40,7 @@ mac:
|
|||||||
artifacts:
|
artifacts:
|
||||||
name: $EXPORT_NAME-$CI_JOB_NAME
|
name: $EXPORT_NAME-$CI_JOB_NAME
|
||||||
paths:
|
paths:
|
||||||
- game/build/mac
|
- build/mac
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
|
|
||||||
web:
|
web:
|
||||||
stage: export
|
stage: export
|
||||||
@@ -54,9 +49,7 @@ web:
|
|||||||
artifacts:
|
artifacts:
|
||||||
name: $EXPORT_NAME-$CI_JOB_NAME
|
name: $EXPORT_NAME-$CI_JOB_NAME
|
||||||
paths:
|
paths:
|
||||||
- game/build/web
|
- build/web
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
|
|
||||||
# Use project root to deploy for the gh-pages branch
|
# Use project root to deploy for the gh-pages branch
|
||||||
deploy-github-pages:
|
deploy-github-pages:
|
||||||
@@ -64,14 +57,12 @@ deploy-github-pages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- web
|
- web
|
||||||
script:
|
script:
|
||||||
- cd ../
|
|
||||||
- git checkout gh-pages
|
- git checkout gh-pages
|
||||||
- mv game/build/web/** .
|
- rm -f *.md
|
||||||
- git config user.email artur@barichello.me
|
- mv build/web/** .
|
||||||
- git config user.name abarichello
|
- git config user.email $GIT_EMAIL
|
||||||
|
- git config user.name $GIT_USERNAME
|
||||||
- git remote add github $REMOTE_URL
|
- git remote add github $REMOTE_URL
|
||||||
- git add -A
|
- git add -A
|
||||||
- 'git commit -m "Auto: Deploy GitHub Page $EXPORT_NAME-$CI_JOB_NAME$" -m "Deploy from GitLab pipeline \#$CI_PIPELINE_ID"'
|
- 'git commit -m "ci: Deploy GitHub Page $EXPORT_NAME-$CI_JOB_NAME$" -m "Deploy from GitLab pipeline \#$CI_PIPELINE_ID"'
|
||||||
- git push github gh-pages -f
|
- git push github gh-pages -f
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
|
|||||||
Reference in New Issue
Block a user