/
config.yml
88 lines (83 loc) · 3.21 KB
/
config.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2.1
jobs:
build:
docker:
- image: circleci/node:current
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-maskbook-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v1-maskbook-{{ .Branch }}-
- v1-maskbook-
- run:
name: Build Maskbook
command: node ./scripts/ci-build.js
- save_cache:
paths:
- node_modules
key: v1-maskbook-{{ .Branch }}-{{ checksum "yarn.lock" }}
- store_artifacts:
path: Maskbook.zip
destination: /Maskbook.zip
- store_artifacts:
path: Maskbook.WKWebview.zip
destination: /Maskbook.WKWebview.zip
- store_artifacts:
path: Maskbook.chromium.zip
destination: /Maskbook.chromium.zip
- store_artifacts:
path: Maskbook.firefoxDesktop.zip
destination: /Maskbook.firefoxDesktop.zip
- store_artifacts:
path: Maskbook.firefoxGeckoview.zip
destination: /Maskbook.firefoxGeckoview.zip
- store_artifacts:
path: Maskbook.firefoxAndroid.zip
destination: /Maskbook.firefoxAndroid.zip
- persist_to_workspace:
root: ~/repo/
paths:
- Maskbook.zip
- Maskbook.WKWebview.zip
- Maskbook.chromium.zip
- Maskbook.firefoxDesktop.zip
- Maskbook.firefoxGeckoview.zip
- Maskbook.firefoxAndroid.zip
publish-github-release:
docker:
- image: cibuilds/github:0.10
steps:
- checkout
- attach_workspace:
at: ~/repo/
- run:
name: 'Publish Release on GitHub'
command: |
set -o nounset
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -b "✔ No breaking changes. / ⚠ Has breaking changes!
🆕 New Feature
🔐 Security
🎨 UI Improvements
🐛 Bug Fixes
👩💻 Miscellaneous" -replace -draft -prerelease $(git describe HEAD) ~/repo/Maskbook.zip
# -b BODY \ # Set text describing the contents of the release
# -delete \ # Delete release and its git tag in advance if it exists (same as -recreate)
# -n TITLE \ # Set release title
workflows:
version: 2
main:
jobs:
- build
- publish-github-release:
requires:
- build
filters:
branches:
only: released
# test