forked from Overwatch-1-Emulator/ow1-emulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
61 lines (57 loc) · 1.88 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
stages: # List of stages for jobs, and their order of execution
- build
# - deploy
- release
build-job: # This job runs in the build stage, which runs first.
stage: build
image: node
variables:
SEMANTIC_RELEASE_PACKAGE: $CI_PROJECT_NAME
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apt-get update && apt-get install -y --no-install-recommends git-core ca-certificates
- npm install -g semantic-release @semantic-release/gitlab
- npm install semantic-release-discord-bot -D
script:
- export NEXT_VERSION=v$(semantic-release --dry-run | grep 'The next release version is' | sed -E 's/.* ([[:alnum:].\-]+)$/\1/')
- cd "overpy/VS Code Extension/" && npm install && cd ../../
- node build.js $NEXT_VERSION
artifacts:
paths:
- build/ow1em.txt
- build/ow1pp.txt
- build/1v1-ow1.txt
only:
- main
- beta
# deploy-staging-job: # This job runs in the deploy stage.
# stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
# environment: staging
# script:
# - echo "Deploying staging build..."
# - echo "Staging build successfully deployed."
# only:
# - staging
# deploy-main-job: # This job runs in the deploy stage.
# stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
# environment: production
# script:
# - echo "Deploying main build..."
# - echo "Main build successfully deployed."
# only:
# - main
# - beta
release-job:
image: node
stage: release
before_script:
- apt-get update && apt-get install -y --no-install-recommends git-core ca-certificates
- npm install -g semantic-release @semantic-release/gitlab
- npm install semantic-release-discord-bot -D
variables:
SEMANTIC_RELEASE_PACKAGE: $CI_PROJECT_NAME
script:
- semantic-release
only:
- main
- beta