-
Notifications
You must be signed in to change notification settings - Fork 47
161 lines (160 loc) · 6.6 KB
/
website.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# !!! This file is auto-generated, do not edit by hand !!!
# To make changes, edit .github/workflows-src/website.ts and then run:
#
# github-actions-workflow-builder --directory ".github/workflows-src""
name: Website
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
publish_website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
registry-url: https://registry.npmjs.org
- name: Get yarn cache directory path
run: echo "::set-output name=dir::$(yarn cache dir)"
id: step_3
- name: Enable Cache
uses: actions/cache@v2
with:
path: |-
${{steps.step_3.outputs.dir}}
node_modules
packages/*/node_modules
key: ${{runner.os}}-14.x-${{hashFiles('yarn.lock')}}-2
- run: yarn install --prefer-offline
- name: Enable Cache
uses: actions/cache@v2
with:
path: |-
packages/bigquery/lib
packages/connection-pool/lib
packages/escape-identifier/lib
packages/expo/lib
packages/lock/lib
packages/migrations-base/lib
packages/mock-db/lib
packages/mock-db-typed/lib
packages/mysql/lib
packages/mysql-config/lib
packages/mysql-schema-cli/lib
packages/mysql-schema-introspect/lib
packages/mysql-schema-print-types/lib
packages/mysql-test/lib
packages/mysql-typed/lib
packages/pg/lib
packages/pg-bulk/lib
packages/pg-cluster/lib
packages/pg-config/lib
packages/pg-connection-string/lib
packages/pg-create/lib
packages/pg-data-type-id/lib
packages/pg-errors/lib
packages/pg-migrations/lib
packages/pg-schema-cli/lib
packages/pg-schema-introspect/lib
packages/pg-schema-print-types/lib
packages/pg-test/lib
packages/pg-typed/lib
packages/push-to-async-iterable/lib
packages/queue/lib
packages/shared/lib
packages/shared-print-types/lib
packages/split-sql-query/lib
packages/sql/lib
packages/sqlite/lib
packages/sqlite-sync/lib
packages/validate-unicode/lib
packages/websql/lib
packages/websql-core/lib
packages/with-container/lib
packages/bigquery/.last_build
packages/connection-pool/.last_build
packages/escape-identifier/.last_build
packages/expo/.last_build
packages/lock/.last_build
packages/migrations-base/.last_build
packages/mock-db/.last_build
packages/mock-db-typed/.last_build
packages/mysql/.last_build
packages/mysql-config/.last_build
packages/mysql-schema-cli/.last_build
packages/mysql-schema-introspect/.last_build
packages/mysql-schema-print-types/.last_build
packages/mysql-test/.last_build
packages/mysql-typed/.last_build
packages/pg/.last_build
packages/pg-bulk/.last_build
packages/pg-cluster/.last_build
packages/pg-config/.last_build
packages/pg-connection-string/.last_build
packages/pg-create/.last_build
packages/pg-data-type-id/.last_build
packages/pg-errors/.last_build
packages/pg-migrations/.last_build
packages/pg-schema-cli/.last_build
packages/pg-schema-introspect/.last_build
packages/pg-schema-print-types/.last_build
packages/pg-test/.last_build
packages/pg-typed/.last_build
packages/push-to-async-iterable/.last_build
packages/queue/.last_build
packages/shared/.last_build
packages/shared-print-types/.last_build
packages/split-sql-query/.last_build
packages/sql/.last_build
packages/sqlite/.last_build
packages/sqlite-sync/.last_build
packages/validate-unicode/.last_build
packages/websql/.last_build
packages/websql-core/.last_build
packages/with-container/.last_build
key: v2-build-output-${{hashFiles('yarn.lock', 'packages/bigquery/src',
'packages/connection-pool/src', 'packages/escape-identifier/src',
'packages/expo/src', 'packages/lock/src',
'packages/migrations-base/src', 'packages/mock-db/src',
'packages/mock-db-typed/src', 'packages/mysql/src',
'packages/mysql-config/src', 'packages/mysql-schema-cli/src',
'packages/mysql-schema-introspect/src',
'packages/mysql-schema-print-types/src', 'packages/mysql-test/src',
'packages/mysql-typed/src', 'packages/pg/src',
'packages/pg-bulk/src', 'packages/pg-cluster/src',
'packages/pg-config/src', 'packages/pg-connection-string/src',
'packages/pg-create/src', 'packages/pg-data-type-id/src',
'packages/pg-errors/src', 'packages/pg-migrations/src',
'packages/pg-schema-cli/src', 'packages/pg-schema-introspect/src',
'packages/pg-schema-print-types/src', 'packages/pg-test/src',
'packages/pg-typed/src', 'packages/push-to-async-iterable/src',
'packages/queue/src', 'packages/shared/src',
'packages/shared-print-types/src', 'packages/split-sql-query/src',
'packages/sql/src', 'packages/sqlite/src',
'packages/sqlite-sync/src', 'packages/validate-unicode/src',
'packages/websql/src', 'packages/websql-core/src',
'packages/with-container/src')}}
restore-keys: v2-build-output-
- run: yarn build
- name: Enable NextJS Cache
uses: actions/cache@v2
with:
path: packages/website/.next/cache
key: next-${{hashFiles('yarn.lock')}}
restore-keys: next-
- run: yarn workspace @databases/website build
- if: ${{ github.event_name == 'push' }}
run: netlify deploy --prod --dir=packages/website/out
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
- if: ${{ github.event_name != 'push' }}
run: netlify deploy --dir=packages/website/out
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}