mirror of
https://github.com/standardnotes/app
synced 2026-09-14 12:45:58 -04:00
Compare commits
475
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e2715709d4 | ||
|
|
1efc352da5 | ||
|
|
1f27f0f790 | ||
|
|
461ebc2768 | ||
|
|
1d93210f81 | ||
|
|
91d5980a7e | ||
|
|
8ea069cf5c | ||
|
|
9267e580b5 | ||
|
|
17131f7d67 | ||
|
|
ecd870cdaa | ||
|
|
4617afe14e | ||
|
|
f21269fc69 | ||
|
|
3afbce385b | ||
|
|
0e86b13a8f | ||
|
|
9719c6fcac | ||
|
|
8792771d27 | ||
|
|
aa7a22c6ac | ||
|
|
91f5694a02 | ||
|
|
19a95dc404 | ||
|
|
089d3a2e66 | ||
|
|
370ce39eba | ||
|
|
876c0e83ca | ||
|
|
a203faf02d | ||
|
|
520b3add0f | ||
|
|
c336f9de18 | ||
|
|
2c69a514a8 | ||
|
|
26fe530deb | ||
|
|
58f9789142 | ||
|
|
d2cebf930a | ||
|
|
7bff3dee24 | ||
|
|
a2b6ec74b0 | ||
|
|
2bdd931f6d | ||
|
|
a780fa4e87 | ||
|
|
becbe34233 | ||
|
|
2a976a0de4 | ||
|
|
e7acbd7de8 | ||
|
|
779596b9ae | ||
|
|
b1f23d6076 | ||
|
|
818c3066cc | ||
|
|
13343c9a56 | ||
|
|
3d1dc8f38a | ||
|
|
163cc8ce8a | ||
|
|
a25923f084 | ||
|
|
f14f105703 | ||
|
|
6d7bcd7a8d | ||
|
|
da06f293e0 | ||
|
|
ec4dc1d477 | ||
|
|
2ea9f862fe | ||
|
|
901b1516d3 | ||
|
|
54ae4365a3 | ||
|
|
5b910d4ae4 | ||
|
|
40d9392599 | ||
|
|
a7dfeae650 | ||
|
|
77cbb6b06e | ||
|
|
82a8bcc440 | ||
|
|
83f6cc667d | ||
|
|
d048800b9d | ||
|
|
1f3e741811 | ||
|
|
887402f75f | ||
|
|
d533fb78e0 | ||
|
|
f555fbcaaa | ||
|
|
8332a70384 | ||
|
|
50e85cac15 | ||
|
|
f2369c7555 | ||
|
|
5f0d3ca8b2 | ||
|
|
1d378228d3 | ||
|
|
d04d5d9d8f | ||
|
|
2e487ae6f3 | ||
|
|
0825cedfbe | ||
|
|
05435553a4 | ||
|
|
355c70d7f7 | ||
|
|
ac24256f34 | ||
|
|
10f40f662e | ||
|
|
73e3b3813f | ||
|
|
3ce621e24c | ||
|
|
8a1293f66d | ||
|
|
94772bb7b6 | ||
|
|
c2159e77f7 | ||
|
|
ffb2193924 | ||
|
|
183f68c9c1 | ||
|
|
696b82b9d3 | ||
|
|
7e251262d7 | ||
|
|
c72a407095 | ||
|
|
58138c9a1f | ||
|
|
aabcd62dc2 | ||
|
|
f50a655f9f | ||
|
|
ae3e275cee | ||
|
|
4d994dc79b | ||
|
|
8a4aded995 | ||
|
|
1216b441fb | ||
|
|
f9036168e3 | ||
|
|
1cefaf10ee | ||
|
|
966c15701f | ||
|
|
f259f774c5 | ||
|
|
483cac90cf | ||
|
|
3116ae3883 | ||
|
|
5b3cfddc50 | ||
|
|
5ec8e99781 | ||
|
|
58e751f986 | ||
|
|
8c364f6d58 | ||
|
|
9bc7533010 | ||
|
|
6f7dfaa9f6 | ||
|
|
7b6b2bc5b1 | ||
|
|
36288ad36a | ||
|
|
2573407851 | ||
|
|
baf7fb0019 | ||
|
|
9ea1b35e0f | ||
|
|
98fc870d76 | ||
|
|
4d30331861 | ||
|
|
12e2b83344 | ||
|
|
9e835c3b07 | ||
|
|
12168945f1 | ||
|
|
a827274ac6 | ||
|
|
65c377ba62 | ||
|
|
c02ec9a5f9 | ||
|
|
40b344fd00 | ||
|
|
776fa579c4 | ||
|
|
b174493b4e | ||
|
|
a7a81b15a9 | ||
|
|
135e5924bf | ||
|
|
aaf68a8f73 | ||
|
|
9a297fe8cf | ||
|
|
f06167abc2 | ||
|
|
f125ad3cf1 | ||
|
|
26949749fc | ||
|
|
763f4655a1 | ||
|
|
2e1218c2c1 | ||
|
|
431f1e3bac | ||
|
|
b3c8d6e976 | ||
|
|
7624f95462 | ||
|
|
71e792da35 | ||
|
|
09e08ca899 | ||
|
|
59327a5aa1 | ||
|
|
da65a94d08 | ||
|
|
0a2c90f2c1 | ||
|
|
3f028656f2 | ||
|
|
5706b4d162 | ||
|
|
9d230d4b81 | ||
|
|
b025e394c1 | ||
|
|
6764f3267b | ||
|
|
97cb721909 | ||
|
|
4ad21c4f61 | ||
|
|
a5ccaf1331 | ||
|
|
3c4ba61fee | ||
|
|
5393eb71fe | ||
|
|
0aef604167 | ||
|
|
c6932ba733 | ||
|
|
fc6e36e761 | ||
|
|
66f97f0612 | ||
|
|
961d1fb8d4 | ||
|
|
f349744fdb | ||
|
|
c737132b50 | ||
|
|
1809c51e54 | ||
|
|
3e4e7fd0e0 | ||
|
|
0d16e6faaa | ||
|
|
3d49b95bc5 | ||
|
|
dc48b504db | ||
|
|
6001c0d7a1 | ||
|
|
bcb6a94fb6 | ||
|
|
1990a9d2e6 | ||
|
|
2448672a61 | ||
|
|
306a2129a2 | ||
|
|
d9014615f0 | ||
|
|
f484a2a920 | ||
|
|
2f9a54bef3 | ||
|
|
3a20abc989 | ||
|
|
9a3cdfbc1a | ||
|
|
a59065d1d6 | ||
|
|
2988c71334 | ||
|
|
516b4edb6c | ||
|
|
6e2911105b | ||
|
|
7017032893 | ||
|
|
573c67d41c | ||
|
|
50c024e643 | ||
|
|
6ebac52cb0 | ||
|
|
ff9215c916 | ||
|
|
2415088561 | ||
|
|
2b05f35433 | ||
|
|
180a183f96 | ||
|
|
f7ba6588a7 | ||
|
|
bfba5b8d4f | ||
|
|
7bd94be7e2 | ||
|
|
e17366ff8e | ||
|
|
34719c4935 | ||
|
|
3df6acbd44 | ||
|
|
6fa6374cf2 | ||
|
|
68356912f2 | ||
|
|
9bba4b5c67 | ||
|
|
ca6e3ca9e9 | ||
|
|
a900f8b493 | ||
|
|
c8ca316fcd | ||
|
|
36d3b65605 | ||
|
|
d1df0d371a | ||
|
|
78271b68f6 | ||
|
|
76daf4c81b | ||
|
|
2ee791259d | ||
|
|
34ebfd33c1 | ||
|
|
d315c8c6c1 | ||
|
|
e6859d4a8d | ||
|
|
90b453253e | ||
|
|
58720c8ad3 | ||
|
|
8a94171eb0 | ||
|
|
3ab1ef5e2a | ||
|
|
6116287138 | ||
|
|
73ebb62c88 | ||
|
|
d05d6db620 | ||
|
|
ad92392b4d | ||
|
|
47de4020e1 | ||
|
|
d38071168a | ||
|
|
0e40469e2f | ||
|
|
321a055bae | ||
|
|
bc666aa983 | ||
|
|
a9fe67977c | ||
|
|
0c2b1fb03f | ||
|
|
7946a3a9c7 | ||
|
|
21d8a99b3d | ||
|
|
57510921c2 | ||
|
|
6751f30db6 | ||
|
|
93679df645 | ||
|
|
46fe66256b | ||
|
|
6ec66795d2 | ||
|
|
9d1f7043e5 | ||
|
|
67b0918ba8 | ||
|
|
9d7d18e7f2 | ||
|
|
e2e9a11984 | ||
|
|
aef4ceb7f8 | ||
|
|
d273770831 | ||
|
|
c4e16e4346 | ||
|
|
13f9f1668e | ||
|
|
1b06ea7331 | ||
|
|
ffcbbec0ab | ||
|
|
f751a98aea | ||
|
|
f4cde8f752 | ||
|
|
fbfed0a05c | ||
|
|
b614c71e79 | ||
|
|
60d1554ff7 | ||
|
|
5cd28ca077 | ||
|
|
28dbb95965 | ||
|
|
1cd8a47fa4 | ||
|
|
730853e67a | ||
|
|
f99a516535 | ||
|
|
f995cac9f1 | ||
|
|
4abbda7537 | ||
|
|
65aca615a1 | ||
|
|
5bacb4562f | ||
|
|
af2b73026c | ||
|
|
296aa9aab2 | ||
|
|
d4188a3fa2 | ||
|
|
577da2ca84 | ||
|
|
d2ee37aa78 | ||
|
|
462b8e3cbd | ||
|
|
1ce4cb3c5c | ||
|
|
ce626dde8b | ||
|
|
ede5f6dd0c | ||
|
|
5ccb42cf5f | ||
|
|
ea5b553583 | ||
|
|
b49178a6d5 | ||
|
|
3f65a3263e | ||
|
|
d18df20e89 | ||
|
|
a7c8de9a81 | ||
|
|
1d6f53eddf | ||
|
|
dd6f84ab77 | ||
|
|
cf3bac0217 | ||
|
|
30f346143f | ||
|
|
5ee7b0639a | ||
|
|
784a1d8158 | ||
|
|
8f65d5f5bf | ||
|
|
3abc28d859 | ||
|
|
339b7f32fd | ||
|
|
0cbd98224c | ||
|
|
37d765ab21 | ||
|
|
82f3025f23 | ||
|
|
24e89e8c34 | ||
|
|
0a5b72c5fd | ||
|
|
4a92b1d7bd | ||
|
|
2f4b79fab3 | ||
|
|
9c7f713baa | ||
|
|
7ab2f7a32d | ||
|
|
09d8e067da | ||
|
|
40c294e8a5 | ||
|
|
25c54a06f2 | ||
|
|
fa54cfe813 | ||
|
|
ebb6f8937c | ||
|
|
81cd637f5a | ||
|
|
44d3e96468 | ||
|
|
e335d0d2c2 | ||
|
|
a55d92038b | ||
|
|
8b7935d545 | ||
|
|
175a0ff7db | ||
|
|
253cc589a3 | ||
|
|
36fc9caa2c | ||
|
|
32481dfe05 | ||
|
|
618e0e0784 | ||
|
|
249f5f192f | ||
|
|
85ab5b914a | ||
|
|
03497cbf5b | ||
|
|
2ec1a4dbb4 | ||
|
|
d026b659fb | ||
|
|
4feaff2621 | ||
|
|
945248d7d3 | ||
|
|
d311ce40b9 | ||
|
|
354fb13256 | ||
|
|
e5771fcbde | ||
|
|
60273785c2 | ||
|
|
66d5dce5e1 | ||
|
|
f11b8e163c | ||
|
|
42dee7513e | ||
|
|
1e666fa606 | ||
|
|
27e3e57150 | ||
|
|
0f4753f2c0 | ||
|
|
4978264ef8 | ||
|
|
a0205a5c7d | ||
|
|
68e0acecca | ||
|
|
21ea2ec7a1 | ||
|
|
38725daeb9 | ||
|
|
c10b1c3584 | ||
|
|
dd2d377b6a | ||
|
|
0328062d8b | ||
|
|
dd23135d6d | ||
|
|
b8e8fb689b | ||
|
|
f3a6aaaf2e | ||
|
|
f437ed6ce4 | ||
|
|
febca55f25 | ||
|
|
294663a725 | ||
|
|
88b2150bad | ||
|
|
bdce364fd7 | ||
|
|
0193ba3e7b | ||
|
|
2be683954d | ||
|
|
7eadc16a6c | ||
|
|
7c3c59dd92 | ||
|
|
297b3bb4f8 | ||
|
|
c4ac9fb8d6 | ||
|
|
44d6bdf147 | ||
|
|
df87a38b56 | ||
|
|
87213e9f5d | ||
|
|
53ff07244a | ||
|
|
70c1dd7827 | ||
|
|
47a0551967 | ||
|
|
6960bec339 | ||
|
|
7c2b8fe545 | ||
|
|
eac62fef1a | ||
|
|
8b845ea424 | ||
|
|
604520f1ae | ||
|
|
98ed6472c0 | ||
|
|
fad80af0ff | ||
|
|
0644490e43 | ||
|
|
2da360234d | ||
|
|
e86ea8837a | ||
|
|
7851e12e9e | ||
|
|
82d13b41ed | ||
|
|
4f5d092f89 | ||
|
|
cd0859e908 | ||
|
|
e9eff74fdb | ||
|
|
f503a3fde6 | ||
|
|
ddeaf523a8 | ||
|
|
b042326301 | ||
|
|
db066b2693 | ||
|
|
5cd449fe80 | ||
|
|
92360aaf66 | ||
|
|
931c66dc16 | ||
|
|
6c19adba19 | ||
|
|
38dc61a80e | ||
|
|
b03409c2a0 | ||
|
|
26585c0e1f | ||
|
|
de3b27d563 | ||
|
|
fd5c4f44ce | ||
|
|
0ecaabd859 | ||
|
|
a4379a3e43 | ||
|
|
b8efd823ac | ||
|
|
a3a654f381 | ||
|
|
d198625cfa | ||
|
|
b421415968 | ||
|
|
5e5cf618c5 | ||
|
|
7916ec439f | ||
|
|
b06912c914 | ||
|
|
bb43134e94 | ||
|
|
f2ae9e8bdf | ||
|
|
94be36ed9c | ||
|
|
a07340936f | ||
|
|
7b51fa4fa8 | ||
|
|
fb0684a19c | ||
|
|
5b4fbbe956 | ||
|
|
667af4d680 | ||
|
|
117a6dfbc7 | ||
|
|
6ebc3759aa | ||
|
|
cc55888d29 | ||
|
|
ee5b6627da | ||
|
|
15ca2d358b | ||
|
|
5116895b36 | ||
|
|
59e5324a29 | ||
|
|
36645d7fbf | ||
|
|
a9995ff6cd | ||
|
|
7d1b66a036 | ||
|
|
94da6b24e6 | ||
|
|
c52690a620 | ||
|
|
ded2d1866a | ||
|
|
0290dcfd46 | ||
|
|
d90dfdb085 | ||
|
|
207625bda8 | ||
|
|
50991d5a5f | ||
|
|
2a34c6f2b8 | ||
|
|
662eb88cdd | ||
|
|
535752dac0 | ||
|
|
fc6f9a19f8 | ||
|
|
b80038f607 | ||
|
|
0ead805412 | ||
|
|
3e0a06790d | ||
|
|
4dfad27364 | ||
|
|
60ca415044 | ||
|
|
d340ff9d77 | ||
|
|
f3c1eadd62 | ||
|
|
6b90e13dca | ||
|
|
7b543d3c58 | ||
|
|
6973879cda | ||
|
|
d683281d2f | ||
|
|
e59b4ba8ec | ||
|
|
e7e3872c06 | ||
|
|
45178f9024 | ||
|
|
2f7f7a326f | ||
|
|
c10c8b50d4 | ||
|
|
4bd25efd84 | ||
|
|
5c4a645e70 | ||
|
|
b71a797681 | ||
|
|
50136d9373 | ||
|
|
34f00c5946 | ||
|
|
5855e44870 | ||
|
|
f0283f51f2 | ||
|
|
a345f4f97e | ||
|
|
e83452785c | ||
|
|
4f5323140a | ||
|
|
6f17902766 | ||
|
|
67961838d2 | ||
|
|
acfc5b782b | ||
|
|
bd66b191a5 | ||
|
|
c859876bb5 | ||
|
|
1d015365a9 | ||
|
|
4bb227bdce | ||
|
|
23e9a5b511 | ||
|
|
a3a0952e68 | ||
|
|
3cece858b1 | ||
|
|
fedcffbdfd | ||
|
|
9cef147a10 | ||
|
|
e7e90eb350 | ||
|
|
24bb5e3b0c | ||
|
|
2d069fd4bd | ||
|
|
06d452b57f | ||
|
|
9789fc2000 | ||
|
|
cb128e5de1 | ||
|
|
2401c2fcb4 | ||
|
|
36f92a3589 | ||
|
|
6d98cf6929 | ||
|
|
0d62472019 | ||
|
|
020e0f8543 | ||
|
|
da336da44a | ||
|
|
ea0e9fbb27 | ||
|
|
df62e28440 | ||
|
|
46ff53b3c6 | ||
|
|
f8e6632b57 | ||
|
|
b0944a29ed | ||
|
|
edaa1548d4 | ||
|
|
d807ab26d2 | ||
|
|
4217edeb0c | ||
|
|
70e9deccb7 | ||
|
|
6fb133fb75 | ||
|
|
4a9471858b | ||
|
|
018e71d9c4 | ||
|
|
4e0f102a1c | ||
|
|
95602858a7 | ||
|
|
6c57788ab4 | ||
|
|
f3ef8d0e20 | ||
|
|
edcccd3332 | ||
|
|
e939085fc7 | ||
|
|
458d8dacaf | ||
|
|
fe3c8153bd | ||
|
|
c3b5620bf6 |
@@ -1,10 +0,0 @@
|
||||
.git/
|
||||
.gitignore
|
||||
.eslintcache
|
||||
node_modules
|
||||
dist
|
||||
packages/web-server/public/assets
|
||||
packages/web-server/tmp
|
||||
packages/web-server/vendor/bundles
|
||||
packages/desktop
|
||||
packages/mobile
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
PORT=3001
|
||||
|
||||
DEFAULT_SYNC_SERVER=https://api.standardnotes.com
|
||||
|
||||
# Subscription related endpoints
|
||||
DASHBOARD_URL=http://standardnotes.com/dashboard
|
||||
PLANS_URL=https://standardnotes.com/plans
|
||||
PURCHASE_URL=https://standardnotes.com/purchase
|
||||
|
||||
# Used by Rails internals and not Standard Notes related
|
||||
SECRET_KEY_BASE=<enter a secret string here>
|
||||
@@ -0,0 +1,121 @@
|
||||
# To get started with Dependabot version updates, you'll need to specify which
|
||||
# package ecosystems to update and where the package manifests are located.
|
||||
# Please see the documentation for all configuration options:
|
||||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/api"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/components"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/desktop"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/docs"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/encryption"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/features"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/filepicker"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/files"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/icons"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/mobile"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/models"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/releases"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/responses"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/services"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/sncrypto-common"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/sncrypto-web"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/snjs"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/styles"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/toast"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/utils"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/packages/web"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
@@ -13,10 +13,10 @@ name: "CodeQL"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ develop, main ]
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [ develop ]
|
||||
branches: [ main ]
|
||||
schedule:
|
||||
- cron: '21 7 * * 0'
|
||||
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
name: Desktop Beta Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*standardnotes/*desktop*beta*'
|
||||
- '*standardnotes/*desktop*alpha*'
|
||||
- '!*standardnotes/*inner-desktop*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
uses: standardnotes/app/.github/workflows/desktop.release.reuse.yml@develop
|
||||
secrets: inherit
|
||||
with:
|
||||
channel: beta
|
||||
@@ -1,11 +1,9 @@
|
||||
name: Desktop Prod Release
|
||||
name: Desktop Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*standardnotes/*desktop*'
|
||||
- '!*standardnotes/*desktop*beta*'
|
||||
- '!*standardnotes/*desktop*alpha*'
|
||||
- '!*standardnotes/*inner-desktop*'
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
@@ -19,11 +19,13 @@ jobs:
|
||||
run:
|
||||
working-directory: packages/desktop
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: yarn install
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'yarn'
|
||||
- run: yarn install --immutable
|
||||
- run: yarn build:desktop
|
||||
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
|
||||
|
||||
@@ -53,16 +55,18 @@ jobs:
|
||||
run:
|
||||
working-directory: packages/desktop
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'yarn'
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
- name: Install FPM
|
||||
run: sudo gem install fpm -f
|
||||
|
||||
- run: yarn install
|
||||
- run: yarn install --immutable
|
||||
- run: yarn build:desktop
|
||||
|
||||
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
|
||||
@@ -126,11 +130,13 @@ jobs:
|
||||
run:
|
||||
working-directory: packages/desktop
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: yarn install
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'yarn'
|
||||
- run: yarn install --immutable
|
||||
- run: yarn build:desktop
|
||||
- run: yarn run webpack --config desktop.webpack.prod.js
|
||||
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
|
||||
@@ -154,10 +160,14 @@ jobs:
|
||||
run:
|
||||
working-directory: packages/desktop
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'yarn'
|
||||
|
||||
- run: yarn install --immutable
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
@@ -172,19 +182,36 @@ jobs:
|
||||
uses: martinbeentjes/npm-get-version-action@main
|
||||
with:
|
||||
path: packages/desktop
|
||||
|
||||
- name: Generate Release Notes
|
||||
uses: ./actions/release-notes
|
||||
with:
|
||||
package: web desktop
|
||||
id: release-notes
|
||||
continue-on-error: true
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
token: ${{ secrets.CI_PAT_TOKEN }}
|
||||
tag_name: "@standardnotes/desktop@${{ steps.package-version.outputs.current-version}}"
|
||||
name: "Desktop ${{ steps.package-version.outputs.current-version }}"
|
||||
body: ${{ steps.release-notes.outputs.result }}
|
||||
prerelease: true
|
||||
draft: ${{ inputs.channel == 'beta' && true || false }}
|
||||
name: "Desktop ${{ inputs.channel == 'beta' && 'Beta' || '' }} ${{ steps.package-version.outputs.current-version }}"
|
||||
draft: false
|
||||
files: packages/desktop/dist/*
|
||||
|
||||
- name: Notify Release Update
|
||||
uses: peter-evans/repository-dispatch@v2
|
||||
with:
|
||||
token: ${{ secrets.CI_PAT_TOKEN }}
|
||||
repository: ${{ secrets.RELEASES_EVENT_RECEIVING_REPO }}
|
||||
event-type: releases-updated-event
|
||||
|
||||
- name: Publish Snap
|
||||
continue-on-error: true
|
||||
run: |
|
||||
sudo snap install snapcraft --classic
|
||||
echo "${{ secrets.SNAPCRAFT_LOGIN_FILE }}" >> snapauth.txt
|
||||
snapcraft login --with=snapauth.txt
|
||||
snapcraft upload dist/standard-notes-${{ steps.package-version.outputs.current-version}}-linux-amd64.snap
|
||||
snapcraft upload dist/standard-notes-${{ steps.package-version.outputs.current-version}}-linux-amd64.snap --release stable,candidate,beta,edge
|
||||
|
||||
@@ -14,11 +14,13 @@ jobs:
|
||||
run:
|
||||
working-directory: packages/desktop
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: yarn install
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'yarn'
|
||||
- run: yarn install --immutable
|
||||
- run: yarn build:desktop
|
||||
- run: yarn run webpack --config desktop.webpack.prod.js
|
||||
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
|
||||
@@ -41,10 +43,12 @@ jobs:
|
||||
run:
|
||||
working-directory: packages/desktop
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'yarn'
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: assets
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
name: Deploy Docs to GitHub Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- packages/docs/**
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Deploy to GitHub Pages
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
cache: yarn
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install --immutable
|
||||
|
||||
- name: Build
|
||||
run: yarn workspace @standardnotes/docs run build
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.CI_PAT_TOKEN }}
|
||||
publish_dir: ./packages/docs/build
|
||||
@@ -1,4 +1,13 @@
|
||||
on: push
|
||||
name: Sync Repo
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
- '*/*'
|
||||
- '**'
|
||||
|
||||
jobs:
|
||||
git-sync:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -11,3 +20,27 @@ jobs:
|
||||
destination_repo: "standardnotes/internal-app"
|
||||
destination_branch: "refs/heads/*"
|
||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
|
||||
- name: Sleep to allow git-sync to fully complete
|
||||
run: sleep 10
|
||||
shell: bash
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.CI_PAT_TOKEN }}
|
||||
repository: standardnotes/internal-app
|
||||
ref: ${{ github.ref }}
|
||||
|
||||
- name: Extract branch name
|
||||
shell: bash
|
||||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
||||
id: extract_branch
|
||||
|
||||
- uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
token: ${{ secrets.CI_PAT_TOKEN }}
|
||||
branch: ${{ github.ref }}
|
||||
base: main
|
||||
title: ${{ steps.extract_branch.outputs.branch }}
|
||||
assignees: ${{ github.actor }}
|
||||
reviewers: ${{ github.actor }}
|
||||
|
||||
@@ -1,111 +0,0 @@
|
||||
name: Mobile Build Development
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*standardnotes/*mobile*beta*'
|
||||
- '*standardnotes/*mobile*alpha*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
android:
|
||||
defaults:
|
||||
run:
|
||||
working-directory: packages/mobile
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Export version from package.json
|
||||
run: |
|
||||
echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | cut -d "-" -f 1)" >> $GITHUB_ENV
|
||||
- name: Setup react-native kernel and increase watchers
|
||||
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
|
||||
- name: Decode Dev Android keystore
|
||||
run: |
|
||||
echo "${{ secrets.DEV_KEYSTORE }}" > keystore.keystore.asc
|
||||
gpg -d --passphrase "${{ secrets.DEV_KEYSTORE_PASSPHRASE }}" --batch keystore.keystore.asc > android/app/keystore.keystore
|
||||
- name: Ruby Setup for Fastlane
|
||||
uses: ruby/setup-ruby@v1
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
- run: yarn build:mobile
|
||||
- name: fastlane
|
||||
uses: maierj/[email protected]
|
||||
env:
|
||||
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
|
||||
BUILD_NUMBER: ${{ github.run_number }}
|
||||
ANDROID_KEYSTORE_ALIAS: ${{ secrets.DEV_ANDROID_KEYSTORE_ALIAS }}
|
||||
ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD: ${{ secrets.DEV_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD }}
|
||||
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.DEV_ANDROID_KEYSTORE_PASSWORD }}
|
||||
GOOGLE_PLAY_JSON_KEY_DATA: ${{ secrets.GOOGLE_PLAY_JSON_KEY_DATA }}
|
||||
with:
|
||||
lane: 'android dev'
|
||||
subdirectory: 'packages/mobile'
|
||||
|
||||
- name: get-npm-version
|
||||
id: package-version
|
||||
uses: martinbeentjes/npm-get-version-action@main
|
||||
with:
|
||||
path: packages/mobile
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
token: ${{ secrets.CI_PAT_TOKEN }}
|
||||
tag_name: "@standardnotes/mobile@${{ steps.package-version.outputs.current-version}}"
|
||||
prerelease: true
|
||||
draft: false
|
||||
name: "Mobile Beta ${{ steps.package-version.outputs.current-version }}"
|
||||
files: |
|
||||
packages/mobile/android/app/build/outputs/apk/dev/release/app-dev-release.apk
|
||||
ios:
|
||||
defaults:
|
||||
run:
|
||||
working-directory: packages/mobile
|
||||
runs-on: macos-11
|
||||
timeout-minutes: 90
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Export version from package.json
|
||||
run: |
|
||||
echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | cut -d "-" -f 1)" >> $GITHUB_ENV
|
||||
- name: Ruby Setup for Fastlane
|
||||
uses: ruby/setup-ruby@v1
|
||||
- name: Install dependencies
|
||||
run: yarn install && yarn install:pods
|
||||
- run: yarn build:mobile
|
||||
- name: Set ssh connection to Github
|
||||
uses: webfactory/[email protected]
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
- name: Export Apple AppStore Connect API key
|
||||
run: echo "${{ secrets.APPSTORE_CONNECT_KEY }}" > ios/Authkey.p8
|
||||
- name: Setup fastlane
|
||||
uses: maierj/[email protected]
|
||||
env:
|
||||
FASTLANE_USER: ${{ secrets.FASTLANE_USER }}
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
||||
with:
|
||||
lane: 'ios setup'
|
||||
subdirectory: 'packages/mobile'
|
||||
- name: fastlane
|
||||
uses: maierj/[email protected]
|
||||
env:
|
||||
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
|
||||
APPLE_APP_ID: ${{ secrets.DEV_APP_APPLE_ID }}
|
||||
APPSTORE_CONNECT_KEY_ID: ${{ secrets.APPSTORE_CONNECT_KEY_ID }}
|
||||
APPSTORE_CONNECT_KEY_ISSUER_ID: ${{ secrets.APPSTORE_CONNECT_KEY_ISSUER_ID }}
|
||||
FASTLANE_USER: ${{ secrets.FASTLANE_USER }}
|
||||
FASTLANE_SESSION: ${{ secrets.FASTLANE_SESSION }}
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
MATCH_CERTIFICATES_URL: ${{ secrets.MATCH_CERTIFICATES_URL }}
|
||||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
||||
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
|
||||
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
|
||||
BUILD_NUMBER: ${{ github.run_number }}
|
||||
with:
|
||||
lane: 'ios dev'
|
||||
subdirectory: 'packages/mobile'
|
||||
@@ -1,11 +1,9 @@
|
||||
name: Mobile Build Production
|
||||
name: Mobile Release Production
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*standardnotes/mobile*'
|
||||
- '!*standardnotes/mobile*beta*'
|
||||
- '!*standardnotes/mobile*alpha*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -17,7 +15,7 @@ jobs:
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
- name: Export version from package.json
|
||||
run:
|
||||
echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | cut -d "-" -f 1)" >> $GITHUB_ENV
|
||||
@@ -28,7 +26,7 @@ jobs:
|
||||
echo "${{ secrets.ANDROID_KEYSTORE }}" > keystore.keystore.asc
|
||||
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch keystore.keystore.asc > android/app/keystore.keystore
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
run: yarn install --immutable
|
||||
- run: yarn build:mobile
|
||||
- name: Ruby Setup for Fastlane
|
||||
uses: ruby/setup-ruby@v1
|
||||
@@ -50,14 +48,23 @@ jobs:
|
||||
uses: martinbeentjes/npm-get-version-action@main
|
||||
with:
|
||||
path: packages/mobile
|
||||
|
||||
- name: Generate Release Notes
|
||||
uses: ./actions/release-notes
|
||||
with:
|
||||
package: mobile
|
||||
id: release-notes
|
||||
continue-on-error: true
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
token: ${{ secrets.CI_PAT_TOKEN }}
|
||||
tag_name: "@standardnotes/mobile@${{ steps.package-version.outputs.current-version}}"
|
||||
prerelease: false
|
||||
draft: false
|
||||
name: "Mobile ${{ steps.package-version.outputs.current-version }}"
|
||||
body: ${{ steps.release-notes.outputs.result }}
|
||||
prerelease: true
|
||||
draft: false
|
||||
files: |
|
||||
packages/mobile/android/app/build/outputs/bundle/prodRelease/app-prod-release.aab
|
||||
packages/mobile/android/app/build/outputs/apk/prod/release/app-prod-release.apk
|
||||
@@ -70,12 +77,12 @@ jobs:
|
||||
timeout-minutes: 90
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
- name: Export version from package.json
|
||||
run:
|
||||
echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | cut -d "-" -f 1)" >> $GITHUB_ENV
|
||||
- name: Install dependencies
|
||||
run: yarn install && yarn install:pods
|
||||
run: yarn install --immutable && yarn install:pods
|
||||
- run: yarn build:mobile
|
||||
- name: Set ssh connection to Github
|
||||
uses: webfactory/[email protected]
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
name: Mobile TestFlight
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*standardnotes/mobile*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
android:
|
||||
defaults:
|
||||
run:
|
||||
working-directory: packages/mobile
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: Export version from package.json
|
||||
run: |
|
||||
echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | cut -d "-" -f 1)" >> $GITHUB_ENV
|
||||
- name: Setup react-native kernel and increase watchers
|
||||
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
|
||||
- name: Decode Dev Android keystore
|
||||
run: |
|
||||
echo "${{ secrets.DEV_KEYSTORE }}" > keystore.keystore.asc
|
||||
gpg -d --passphrase "${{ secrets.DEV_KEYSTORE_PASSPHRASE }}" --batch keystore.keystore.asc > android/app/keystore.keystore
|
||||
- name: Ruby Setup for Fastlane
|
||||
uses: ruby/setup-ruby@v1
|
||||
- name: Install dependencies
|
||||
run: yarn install --immutable
|
||||
- run: yarn build:mobile
|
||||
- name: fastlane
|
||||
uses: maierj/[email protected]
|
||||
env:
|
||||
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
|
||||
BUILD_NUMBER: ${{ github.run_number }}
|
||||
ANDROID_KEYSTORE_ALIAS: ${{ secrets.DEV_ANDROID_KEYSTORE_ALIAS }}
|
||||
ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD: ${{ secrets.DEV_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD }}
|
||||
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.DEV_ANDROID_KEYSTORE_PASSWORD }}
|
||||
GOOGLE_PLAY_JSON_KEY_DATA: ${{ secrets.GOOGLE_PLAY_JSON_KEY_DATA }}
|
||||
with:
|
||||
lane: 'android dev'
|
||||
subdirectory: 'packages/mobile'
|
||||
|
||||
- name: get-npm-version
|
||||
id: package-version
|
||||
uses: martinbeentjes/npm-get-version-action@main
|
||||
with:
|
||||
path: packages/mobile
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
token: ${{ secrets.CI_PAT_TOKEN }}
|
||||
tag_name: "@standardnotes/mobile@${{ steps.package-version.outputs.current-version}}"
|
||||
prerelease: true
|
||||
draft: true
|
||||
name: "Mobile Dev ${{ steps.package-version.outputs.current-version }}"
|
||||
files: |
|
||||
packages/mobile/android/app/build/outputs/apk/dev/release/app-dev-release.apk
|
||||
ios:
|
||||
defaults:
|
||||
run:
|
||||
working-directory: packages/mobile
|
||||
runs-on: macos-11
|
||||
timeout-minutes: 90
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: Export version from package.json
|
||||
run: |
|
||||
echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | cut -d "-" -f 1)" >> $GITHUB_ENV
|
||||
- name: Ruby Setup for Fastlane
|
||||
uses: ruby/setup-ruby@v1
|
||||
- name: Install dependencies
|
||||
run: yarn install --immutable && yarn install:pods
|
||||
- run: yarn build:mobile
|
||||
- name: Set ssh connection to Github
|
||||
uses: webfactory/[email protected]
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
- name: Export Apple AppStore Connect API key
|
||||
run: echo "${{ secrets.APPSTORE_CONNECT_KEY }}" > ios/Authkey.p8
|
||||
- name: Setup fastlane
|
||||
uses: maierj/[email protected]
|
||||
env:
|
||||
FASTLANE_USER: ${{ secrets.FASTLANE_USER }}
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
||||
with:
|
||||
lane: 'ios setup'
|
||||
subdirectory: 'packages/mobile'
|
||||
- name: fastlane
|
||||
uses: maierj/[email protected]
|
||||
env:
|
||||
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
|
||||
APPLE_APP_ID: ${{ secrets.DEV_APP_APPLE_ID }}
|
||||
APPSTORE_CONNECT_KEY_ID: ${{ secrets.APPSTORE_CONNECT_KEY_ID }}
|
||||
APPSTORE_CONNECT_KEY_ISSUER_ID: ${{ secrets.APPSTORE_CONNECT_KEY_ISSUER_ID }}
|
||||
FASTLANE_USER: ${{ secrets.FASTLANE_USER }}
|
||||
FASTLANE_SESSION: ${{ secrets.FASTLANE_SESSION }}
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
MATCH_CERTIFICATES_URL: ${{ secrets.MATCH_CERTIFICATES_URL }}
|
||||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
||||
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
|
||||
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
|
||||
BUILD_NUMBER: ${{ github.run_number }}
|
||||
with:
|
||||
lane: 'ios dev'
|
||||
subdirectory: 'packages/mobile'
|
||||
@@ -1,73 +0,0 @@
|
||||
name: Mobile e2e
|
||||
|
||||
on: [workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
android:
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./packages/mobile
|
||||
runs-on: macos-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Download Android Emulator Image
|
||||
run: |
|
||||
$ANDROID_HOME/tools/bin/sdkmanager --install "system-images;android-28;default;x86_64"
|
||||
$ANDROID_HOME/tools/bin/avdmanager create avd -n pixel -d "Nexus 5X" --package "system-images;android-28;default;x86_64"
|
||||
|
||||
- name: Install Dependencies
|
||||
run: yarn install
|
||||
|
||||
- name: Add usesCleartextTraffic to release AndroidManifest.xml
|
||||
run: yarn replace-in-file '<application' '<application android:usesCleartextTraffic="true"' ./android/app/src/main/AndroidManifest.xml
|
||||
|
||||
- name: Build for detox
|
||||
env:
|
||||
DETOX_CI: true
|
||||
run: yarn detox build --configuration android.emu.release
|
||||
|
||||
- name: Setup Emulator
|
||||
timeout-minutes: 10
|
||||
run: |
|
||||
echo "Starting emulator"
|
||||
nohup $ANDROID_HOME/emulator/emulator -avd pixel -no-audio -no-snapshot -no-window -gpu swiftshader_indirect &
|
||||
$ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
|
||||
$ANDROID_HOME/platform-tools/adb shell settings put global window_animation_scale 0 &
|
||||
$ANDROID_HOME/platform-tools/adb shell settings put global transition_animation_scale 0 &
|
||||
$ANDROID_HOME/platform-tools/adb shell settings put global animator_duration_scale 0 &
|
||||
echo "Emulator started"
|
||||
- name: Run tests
|
||||
run: yarn detox test --configuration android.emu.release
|
||||
|
||||
ios:
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./packages/mobile
|
||||
runs-on: macos-latest
|
||||
timeout-minutes: 30
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Install Dependencies
|
||||
run: yarn install
|
||||
|
||||
- name: Install Pods
|
||||
run: npx pod-install ios
|
||||
|
||||
- name: Install detox dependencies
|
||||
run: brew tap wix/brew
|
||||
- name: Install simulator utils
|
||||
run: brew install applesimutils
|
||||
- name: Build for detox
|
||||
run: yarn detox build --configuration ios.sim.release
|
||||
- name: Run tests
|
||||
run: yarn detox test --configuration ios.sim.release
|
||||
@@ -3,7 +3,6 @@ name: Components PR
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- develop
|
||||
- main
|
||||
paths:
|
||||
- packages/components/**
|
||||
@@ -13,27 +12,27 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
|
||||
- name: Build components
|
||||
run: yarn build:components
|
||||
|
||||
- name: Lint components
|
||||
run: yarn lint
|
||||
working-directory: packages/components
|
||||
|
||||
- name: Build components
|
||||
run: yarn build:components
|
||||
|
||||
- name: Test components
|
||||
run: yarn test
|
||||
working-directory: packages/components
|
||||
|
||||
- name: Lint all
|
||||
run: yarn lint
|
||||
- name: Build all
|
||||
run: yarn build:all
|
||||
- name: Lint all
|
||||
run: yarn lint
|
||||
- name: Test all
|
||||
run: yarn test
|
||||
|
||||
@@ -3,7 +3,6 @@ name: General PR
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- develop
|
||||
- main
|
||||
paths:
|
||||
- '**/**'
|
||||
@@ -14,15 +13,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
uses: actions/checkout@v3
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
- name: ESLint
|
||||
run: yarn lint
|
||||
run: yarn install --immutable
|
||||
- name: Build
|
||||
run: yarn build:all
|
||||
- name: ESLint
|
||||
run: yarn lint
|
||||
- name: Build Android
|
||||
run: yarn android:bundle
|
||||
- name: Test
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
name: Promote Develop To Main
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
Run:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: develop
|
||||
token: ${{ secrets.CI_PAT_TOKEN }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup git config
|
||||
run: |
|
||||
git config --global user.name "standardci"
|
||||
git config --global user.email "[email protected]"
|
||||
- name: Import GPG key
|
||||
uses: crazy-max/ghaction-import-gpg@v4
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
passphrase: ${{ secrets.PASSPHRASE }}
|
||||
git_user_signingkey: true
|
||||
git_commit_gpgsign: true
|
||||
|
||||
- name: Merge Develop into Main
|
||||
run: |
|
||||
git config pull.rebase false
|
||||
git checkout main
|
||||
git pull origin develop
|
||||
git push origin main
|
||||
|
||||
|
||||
@@ -1,25 +1,26 @@
|
||||
name: Version Bump
|
||||
name: Publish Packages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ develop, main ]
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
if: contains(github.event.head_commit.message, 'chore(release)') == false
|
||||
if: "${{ contains(github.event.head_commit.message, 'chore(release): publish') == false }}"
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.CI_PAT_TOKEN }}
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Setup git config
|
||||
run: |
|
||||
@@ -32,46 +33,59 @@ jobs:
|
||||
passphrase: ${{ secrets.PASSPHRASE }}
|
||||
git_user_signingkey: true
|
||||
git_commit_gpgsign: true
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
|
||||
- name: Install Dependencies
|
||||
run: yarn install
|
||||
- name: Install dependencies
|
||||
run: yarn install --immutable
|
||||
|
||||
- name: Bump Prod Version Graduate
|
||||
continue-on-error: true
|
||||
id: graduateRelease
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
run: |
|
||||
yarn release:prod:graduate
|
||||
yarn publish:prod
|
||||
- name: Build
|
||||
run: yarn build:all
|
||||
|
||||
- name: Bump Prod Version Fallback
|
||||
if: ${{ always() && github.ref == 'refs/heads/main' && steps.graduateRelease.outcome == 'failure' }}
|
||||
run: |
|
||||
echo Falling back to non-graduate release due to https://github.com/lerna/lerna/issues/2532
|
||||
git stash
|
||||
yarn release:prod
|
||||
yarn publish:prod
|
||||
- name: ESLint
|
||||
run: yarn lint
|
||||
|
||||
- name: Bump Beta Version
|
||||
if: ${{ github.ref == 'refs/heads/develop' }}
|
||||
run: |
|
||||
yarn release:beta
|
||||
yarn publish:beta
|
||||
- name: Build Android
|
||||
run: yarn android:bundle
|
||||
|
||||
- name: Merge release into develop
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
run: |
|
||||
git config pull.rebase false
|
||||
git checkout develop
|
||||
git pull origin main
|
||||
git push origin develop
|
||||
- name: Test
|
||||
run: yarn test
|
||||
|
||||
- name: Notify Release Update
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
uses: peter-evans/repository-dispatch@v2
|
||||
- name: Login to Docker Hub
|
||||
if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}"
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
token: ${{ secrets.CI_PAT_TOKEN }}
|
||||
repository: ${{ secrets.RELEASES_EVENT_RECEIVING_REPO }}
|
||||
event-type: releases-updated-event
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Publish SNJS Docker image for E2E testing
|
||||
if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}"
|
||||
run: |
|
||||
yarn docker build @standardnotes/snjs -t standardnotes/snjs:${{ github.sha }}
|
||||
docker push standardnotes/snjs:${{ github.sha }}
|
||||
|
||||
- name: Run E2E test suite
|
||||
if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}"
|
||||
uses: convictional/[email protected]
|
||||
with:
|
||||
owner: standardnotes
|
||||
repo: e2e
|
||||
github_token: ${{ secrets.CI_PAT_TOKEN }}
|
||||
workflow_file_name: testing-with-stable-server.yml
|
||||
wait_interval: 30
|
||||
client_payload: '{"image_tag": "${{ github.sha }}"}'
|
||||
propagate_failure: true
|
||||
trigger_workflow: true
|
||||
wait_workflow: true
|
||||
|
||||
- name: Bump version
|
||||
run: yarn release:prod
|
||||
|
||||
- name: Publish
|
||||
run: yarn publish:prod
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_TOKEN }}
|
||||
|
||||
- name: Publish SNJS Docker image as stable
|
||||
if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}"
|
||||
run: |
|
||||
docker tag standardnotes/snjs:${{ github.sha }} standardnotes/snjs:latest
|
||||
docker push standardnotes/snjs:latest
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
name: SNJS PR — E2E Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'packages/api/**'
|
||||
- 'packages/encryption/**'
|
||||
- 'packages/features/**'
|
||||
- 'packages/filepicker/**'
|
||||
- 'packages/files/**'
|
||||
- 'packages/models/**'
|
||||
- 'packages/responses/**'
|
||||
- 'packages/services/**'
|
||||
- 'packages/sncrypto-common/**'
|
||||
- 'packages/sncrypto-web/**'
|
||||
- 'packages/snjs/**'
|
||||
- 'packages/utils/**'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: Install dependencies
|
||||
run: yarn install --immutable
|
||||
- name: Build
|
||||
run: yarn build:snjs
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- name: Publish SNJS Docker image for E2E testing
|
||||
run: |
|
||||
yarn docker build @standardnotes/snjs -t standardnotes/snjs:${{ github.sha }}
|
||||
docker push standardnotes/snjs:${{ github.sha }}
|
||||
docker tag standardnotes/snjs:${{ github.sha }} standardnotes/snjs:test
|
||||
docker push standardnotes/snjs:test
|
||||
- name: Run E2E test suite
|
||||
uses: convictional/[email protected]
|
||||
with:
|
||||
owner: standardnotes
|
||||
repo: e2e
|
||||
github_token: ${{ secrets.CI_PAT_TOKEN }}
|
||||
workflow_file_name: testing-with-stable-server.yml
|
||||
wait_interval: 30
|
||||
client_payload: '{"image_tag": "${{ github.sha }}"}'
|
||||
propagate_failure: true
|
||||
trigger_workflow: true
|
||||
wait_workflow: true
|
||||
@@ -0,0 +1,48 @@
|
||||
name: Update SNJS Packages
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
repository_dispatch:
|
||||
types: [snjs-updated-event]
|
||||
|
||||
jobs:
|
||||
SNJSUpdateEvent:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: main
|
||||
token: ${{ secrets.CI_PAT_TOKEN }}
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'yarn'
|
||||
- name: Setup git config
|
||||
run: |
|
||||
git config --global user.name "standardci"
|
||||
git config --global user.email "[email protected]"
|
||||
- name: Import GPG key
|
||||
uses: crazy-max/ghaction-import-gpg@v4
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
passphrase: ${{ secrets.PASSPHRASE }}
|
||||
git_user_signingkey: true
|
||||
git_commit_gpgsign: true
|
||||
|
||||
- run: yarn install
|
||||
- run: |
|
||||
yarn upgrade:snjs
|
||||
yarn install --no-immutable
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
token: ${{ secrets.CI_PAT_TOKEN }}
|
||||
title: "${{ 'chore(deps): upgrade snjs' }}"
|
||||
body: Updates all packages prefixed with "@standardnotes/" in root workspace, web, and mobile.
|
||||
commit-message: "${{ 'chore(deps): upgrade snjs' }}"
|
||||
delete-branch: true
|
||||
committer: standardci <[email protected]>
|
||||
author: standardci <[email protected]>
|
||||
@@ -1,78 +0,0 @@
|
||||
name: Web Server Beta
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ beta/* ]
|
||||
paths:
|
||||
- packages/web-server/**
|
||||
- packages/web/**
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
- name: ESLint
|
||||
run: yarn lint
|
||||
- name: Build
|
||||
run: yarn build:web-server
|
||||
- name: Test
|
||||
run: yarn test
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Copy robots.txt
|
||||
run: cp public/robots.txt.development public/robots.txt
|
||||
- name: Publish to Registry
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: standardnotes/web
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
tags: "beta,${{ github.sha }}"
|
||||
- name: Configure AWS credentials
|
||||
uses: aws-actions/configure-aws-credentials@v1
|
||||
with:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-1
|
||||
- name: Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition app-beta-dev --query taskDefinition > task-definition.json
|
||||
|
||||
- name: Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: app-beta-dev
|
||||
image: "standardnotes/web:${{ github.sha }}"
|
||||
|
||||
- name: Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def.outputs.task-definition }}
|
||||
service: app-beta-dev
|
||||
cluster: dev
|
||||
wait-for-service-stability: true
|
||||
|
||||
notify_discord:
|
||||
needs: deploy
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Run Discord Webhook
|
||||
uses: johnnyhuy/actions-discord-git-webhook@main
|
||||
with:
|
||||
webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||
@@ -1,87 +0,0 @@
|
||||
name: Web Server Dev
|
||||
|
||||
concurrency:
|
||||
group: dev_environment
|
||||
cancel-in-progress: true
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*standardnotes/*web-server*beta*'
|
||||
- '*standardnotes/*web-server*alpha*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
- name: ESLint
|
||||
run: yarn lint
|
||||
- name: Build
|
||||
run: yarn build:web-server
|
||||
- name: Test
|
||||
run: yarn test
|
||||
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
needs: test
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Copy robots.txt
|
||||
run: cp packages/web-server/public/robots.txt.development packages/web-server/public/robots.txt
|
||||
|
||||
- name: Publish to Registry
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: standardnotes/web
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
tags: "latest,${{ github.sha }}"
|
||||
|
||||
- name: Configure AWS credentials
|
||||
uses: aws-actions/configure-aws-credentials@v1
|
||||
with:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-1
|
||||
|
||||
- name: Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition app-dev --query taskDefinition > task-definition.json
|
||||
|
||||
- name: Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: app-dev
|
||||
image: "standardnotes/web:${{ github.sha }}"
|
||||
|
||||
- name: Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def.outputs.task-definition }}
|
||||
service: app-dev
|
||||
cluster: dev
|
||||
wait-for-service-stability: true
|
||||
|
||||
notify_discord:
|
||||
needs: deploy
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Run Discord Webhook
|
||||
uses: johnnyhuy/actions-discord-git-webhook@main
|
||||
with:
|
||||
webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Web Server Prod
|
||||
name: Web Deploy
|
||||
|
||||
concurrency:
|
||||
group: prod_environment
|
||||
@@ -7,72 +7,52 @@ concurrency:
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*standardnotes/*web-server*'
|
||||
- '!*standardnotes/*web-server*beta*'
|
||||
- '!*standardnotes/*web-server*alpha*'
|
||||
- '*standardnotes/*web*'
|
||||
- '!*standardnotes/*web*beta*'
|
||||
- '!*standardnotes/*web*alpha*'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
uses: actions/checkout@v3
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
run: yarn install --immutable
|
||||
- name: Build
|
||||
run: yarn build:web
|
||||
- name: ESLint
|
||||
run: yarn lint
|
||||
- name: Build
|
||||
run: yarn build:web-server
|
||||
- name: Test
|
||||
run: yarn test
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
needs: test
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Copy robots.txt
|
||||
run: cp packages/web-server/public/robots.txt.production packages/web-server/public/robots.txt
|
||||
|
||||
- name: Publish to Registry
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: standardnotes/web
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
tags: "stable,${{ github.sha }}"
|
||||
|
||||
- name: Configure AWS credentials
|
||||
uses: aws-actions/configure-aws-credentials@v1
|
||||
with:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-1
|
||||
|
||||
- name: Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition app-prod --query taskDefinition > task-definition.json
|
||||
|
||||
- name: Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: app-prod
|
||||
image: "standardnotes/web:${{ github.sha }}"
|
||||
|
||||
- name: Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def.outputs.task-definition }}
|
||||
service: app-prod
|
||||
cluster: prod
|
||||
wait-for-service-stability: true
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: Install dependencies
|
||||
run: yarn install --immutable
|
||||
- name: Build
|
||||
run: yarn build:web
|
||||
- name: Configure AWS credentials
|
||||
uses: aws-actions/configure-aws-credentials@v1
|
||||
with:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-1
|
||||
- name: Deploy static site to S3 bucket
|
||||
run: aws s3 sync packages/web/dist/ s3://app.standardnotes.com --delete
|
||||
- name: Invalidate CloudFront Cache
|
||||
uses: chetan/invalidate-cloudfront-action@master
|
||||
env:
|
||||
DISTRIBUTION: ${{ secrets.WEBAPP_CLOUDFRONT_DISTRIBUTION_ID }}
|
||||
PATHS: '/*'
|
||||
AWS_REGION: 'us-east-1'
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
|
||||
notify_discord:
|
||||
needs: deploy
|
||||
|
||||
+15
-6
@@ -3,22 +3,31 @@
|
||||
.vscode
|
||||
.idea
|
||||
node_modules
|
||||
|
||||
packages/web/dist
|
||||
|
||||
.sass-cache
|
||||
|
||||
.env
|
||||
.ssh
|
||||
dump.rdb
|
||||
.vscode
|
||||
/dist
|
||||
yarn-error.log
|
||||
package-lock.json
|
||||
codeqldb
|
||||
coverage
|
||||
lerna-debug.log
|
||||
|
||||
packages/web/dist
|
||||
packages/filepicker/dist
|
||||
packages/features/dist
|
||||
packages/encryption/dist
|
||||
packages/files/dist
|
||||
packages/models/dist
|
||||
packages/services/dist
|
||||
packages/utils/dist
|
||||
packages/api/dist
|
||||
packages/responses/dist
|
||||
packages/sncrypto-common/dist
|
||||
packages/sncrypto-web/dist
|
||||
packages/snjs/dist
|
||||
|
||||
**/.pnp.*
|
||||
**/.yarn/*
|
||||
!.yarn/patches
|
||||
@@ -26,4 +35,4 @@ lerna-debug.log
|
||||
!.yarn/releases
|
||||
!.yarn/sdks
|
||||
!.yarn/versions
|
||||
!.yarn/cache
|
||||
!.yarn/cache
|
||||
|
||||
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user