-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
37 lines (34 loc) · 952 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
stages:
- build
- publish
build:
tags:
- windows
stage: build
script:
- bin/gmad create -folder dj_eban -out djeban.gma
- bin/gmad create -folder clientside -out clientside.gma
- bin/gmad create -folder billjihad -out billjihad.gma
artifacts:
expire_in: 10min
untracked: true
sync-with-github:
tags:
- linux
stage: publish
before_script:
- git config --global user.name "${GITLAB_USER_NAME}"
- git config --global user.email "${GITLAB_USER_EMAIL}"
- COMMIT=$(git log -1 --pretty=%B)
script:
- rm -rf .git
- mkdir old/ && cd old && mv ../* ./ && exit 0
- cd ../
- mkdir new && cd new
- pwd
- git init
- git pull https://$UNAME:[email protected]/5trubel/strubel_garrysmod.git
- rsync -avP ../old/ ./
- git add *
- git commit -m "$COMMIT"
- git push --quiet --set-upstream https://$UNAME:[email protected]/5trubel/strubel_garrysmod.git master