-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
49 lines (45 loc) · 994 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
39
40
41
42
43
44
45
46
47
48
49
stages:
- check
- publish
- notify
check_lint:
stage: check
tags:
- matt.sebbo.net
- ssh
script:
- npm install
- npm run check
publish_github:
stage: publish
tags:
- matt.sebbo.net
- ssh
script:
- git checkout $CI_COMMIT_REF_NAME
- git pull
- git push --force "https://${GITHUB_AUTH}@github.com/ubud-app/plugin-bahn-de.git" --all
- git push --force "https://${GITHUB_AUTH}@github.com/ubud-app/plugin-bahn-de.git" --tags
except:
- tags
publish_npm:
stage: publish
tags:
- matt.sebbo.net
- ssh
script:
- npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
- git push --force "https://${GITHUB_AUTH}@github.com/ubud-app/plugin-bahn-de.git" --tags
- npm run bump
- npm publish --access public
only:
- tags
notify:
stage: notify
tags:
- matt.sebbo.net
- ssh
script:
- curl -X "POST" "https://beacon.ubud.club/webhooks/update-plugin/${WEBHOOK_SECRET}"
only:
- tags