forked from nrenner/brouter-web
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
38 lines (33 loc) · 840 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
37
38
image: node:15-alpine
before_script:
- apk add git
stages:
- prebuild
- build
- deploy
merge_upstream:
stage: prebuild
script:
# this ensure we are up-to-date with upstream
- git checkout dev
- git remote add upstream https://github.com/nrenner/brouter-web.git
- git merge upstream/master
only:
- schedules
build:
stage: build
script:
- yarn
- yarn lint
- yarn build
except:
- schedules
deploy:github:
stage: deploy
script:
- >
sed -i "s/\"version\": \".*\",/\"version\": \"$CI_COMMIT_TAG\",/g" package.json
- yarn
- ./node_modules/.bin/gulp --series release:init default release:zip release:publish --skipnewtag --token $GITHUB_TOKEN
only:
- tags@bagage/brouter-web