-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci.yml
48 lines (44 loc) · 1.2 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
image: node:latest
stages:
- build
- deploy
# GitLab Pages deployment
pages:
image: docker-registry.wikimedia.org/php7.4-cli:latest
stage: build
script:
- php build.php > public/redwarn.js
artifacts:
paths:
# GitLab pages
- public
only:
refs:
- master
################################################################################
# ENGLISH WIKIPEDIA DEPLOYMENT
################################################################################
# The following takes into consideration Wikipedia policy. Edits to any CI
# process below this section MUST be reviewed by a RedWarn Core Team member
# before merging.
deploy_start:
stage: deploy
environment:
name: production
url: https://en.wikipedia.org/wiki/User:RedWarn/.js
when: manual
only:
variables:
- $CI_PROJECT_PATH == "repos/10nm/redwarn-web"
refs:
- master
changes:
- .gitlab-ci.yml
- build.php
- src/**/*
- .gitlab/ci_scripts/**/*
allow_failure: false
script:
- cd .gitlab/ci_scripts
- npm ci
- node enwiki/deploy.js