Skip to content

Commit

Permalink
ci: remove useless commands and artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
AruMoon committed Aug 31, 2023
1 parent 6532b0b commit adaf3e3
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,16 @@ publish:
script:
- mkdir .git/hooks -p
- python3 RUN_THIS.py
- Tools/package_server_build.py -p win-x64 linux-x64 osx-x64 linux-arm64 > server_build.log
- Tools/package_client_build.py > client_build.log
- Tools/package_server_build.py -p win-x64 linux-x64 osx-x64 linux-arm64
- Tools/package_client_build.py
- Tools/gen_build_info.py
- mkdir release/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA
- mv release/*.zip release/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA
- eval $(ssh-agent -s)
- ssh-add - <<< "${SSH_PRIVATE_KEY}"
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan $SSH_REMOTE_IP >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- rsync -avz release/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA $SSH_USER@$SSH_REMOTE_IP:~/builds/builds/
- ssh $SSH_USER@$SSH_REMOTE_IP "~/push.ps1 $CI_COMMIT_REF_NAME-$CI_COMMIT_SHA $CI_COMMIT_REF_NAME"
artifacts:
name: "Build logs $CI_COMMIT_REF_NAME"
paths:
- server_build.log
- client_build.log

publish-artifact:
stage: publish
Expand All @@ -71,9 +63,8 @@ publish-artifact:
- mkdir .git/hooks -p
- python3 RUN_THIS.py
# We create artifact only for Windows and x64 Linux, because almost noone uses OSX and Linux on arm for development among our contributors. This will save for us some amount of storage. You can just add osx-x64 or linux-arm64 if you really need it.
- Tools/package_server_build.py -p win-x64 linux-x64 --hybrid-acz > server_build.log
- Tools/package_server_build.py -p win-x64 linux-x64 --hybrid-acz
artifacts:
name: "$CI_COMMIT_SHA"
name: "$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA"
paths:
- release
- server_build.log
- release/SS14.Server_*

0 comments on commit adaf3e3

Please sign in to comment.