diff --git a/.github/workflows-src/website.ts b/.github/workflows-src/website.ts index c00feedf..ff4f11ec 100644 --- a/.github/workflows-src/website.ts +++ b/.github/workflows-src/website.ts @@ -31,10 +31,13 @@ export default createWorkflow(({setWorkflowName, addTrigger, addJob}) => { run('yarn workspace @databases/website build'); - run(`npm install netlify-cli`); + // run(`npm install netlify-cli`); + run( + interpolate`mkdir .netlify && echo '{"siteId": "${secrets.NETLIFY_SITE_ID}"}' > .netlify/state.json`, + ); when(eq(github.event_name, `push`), () => { run( - `npx netlify-cli deploy --filter @databases/website --prod --dir=packages/website/out`, + `netlify deploy --filter @databases/website --prod --dir=packages/website/out`, { env: { NETLIFY_SITE_ID: secrets.NETLIFY_SITE_ID, @@ -45,7 +48,7 @@ export default createWorkflow(({setWorkflowName, addTrigger, addJob}) => { }); when(neq(github.event_name, `push`), () => { run( - `npx netlify-cli deploy --filter @databases/website --dir=packages/website/out`, + `netlify deploy --filter @databases/website --dir=packages/website/out`, { env: { NETLIFY_SITE_ID: secrets.NETLIFY_SITE_ID, diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 4898517a..1f392f0e 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -154,6 +154,8 @@ jobs: key: next-${{hashFiles('yarn.lock')}} restore-keys: next- - run: yarn workspace @databases/website build + - run: "mkdir .netlify && echo '{\"siteId\": \"${{secrets.NETLIFY_SITE_ID}}\"}' > + .netlify/state.json" - if: ${{ github.event_name == 'push' }} run: netlify deploy --filter @databases/website --prod --dir=packages/website/out diff --git a/.gitignore b/.gitignore index 559fe87d..360b257c 100644 --- a/.gitignore +++ b/.gitignore @@ -33,4 +33,6 @@ packages/*/.cache .last_build -website/build \ No newline at end of file +website/build +# Local Netlify folder +.netlify