Skip to content

Commit

Permalink
Attempt to fix website deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbesLindesay committed Jan 12, 2024
1 parent 74e14e8 commit c1919e1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows-src/website.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ export default createWorkflow(({setWorkflowName, addTrigger, addJob}) => {
run('yarn workspace @databases/website build');

when(eq(github.event_name, `push`), () => {
run(`netlify deploy --prod --dir=packages/website/out`, {
run(`cd packages/website && netlify deploy --prod --dir=out`, {
env: {
NETLIFY_SITE_ID: secrets.NETLIFY_SITE_ID,
NETLIFY_AUTH_TOKEN: secrets.NETLIFY_AUTH_TOKEN,
},
});
});
when(neq(github.event_name, `push`), () => {
run(`netlify deploy --dir=packages/website/out`, {
run(`cd packages/website && netlify deploy --dir=out`, {
env: {
NETLIFY_SITE_ID: secrets.NETLIFY_SITE_ID,
NETLIFY_AUTH_TOKEN: secrets.NETLIFY_AUTH_TOKEN,
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ jobs:
with:
path: |-
packages/bigquery/lib
packages/cache/lib
packages/connection-pool/lib
packages/dataloader/lib
packages/escape-identifier/lib
packages/expo/lib
packages/lock/lib
Expand Down Expand Up @@ -78,7 +80,9 @@ jobs:
packages/websql-core/lib
packages/with-container/lib
packages/bigquery/.last_build
packages/cache/.last_build
packages/connection-pool/.last_build
packages/dataloader/.last_build
packages/escape-identifier/.last_build
packages/expo/.last_build
packages/lock/.last_build
Expand Down Expand Up @@ -119,7 +123,8 @@ jobs:
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/cache/src', 'packages/connection-pool/src',
'packages/dataloader/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',
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ jobs:
with:
path: |-
packages/bigquery/lib
packages/cache/lib
packages/connection-pool/lib
packages/dataloader/lib
packages/escape-identifier/lib
packages/expo/lib
packages/lock/lib
Expand Down Expand Up @@ -78,7 +80,9 @@ jobs:
packages/websql-core/lib
packages/with-container/lib
packages/bigquery/.last_build
packages/cache/.last_build
packages/connection-pool/.last_build
packages/dataloader/.last_build
packages/escape-identifier/.last_build
packages/expo/.last_build
packages/lock/.last_build
Expand Down Expand Up @@ -119,7 +123,8 @@ jobs:
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/cache/src', 'packages/connection-pool/src',
'packages/dataloader/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',
Expand Down Expand Up @@ -150,12 +155,12 @@ jobs:
restore-keys: next-
- run: yarn workspace @databases/website build
- if: ${{ github.event_name == 'push' }}
run: netlify deploy --prod --dir=packages/website/out
run: cd packages/website && netlify deploy --prod --dir=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
run: cd packages/website && netlify deploy --dir=out
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

0 comments on commit c1919e1

Please sign in to comment.