Skip to content

Commit

Permalink
can we skip writing to a json file?
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbesLindesay committed Jan 12, 2024
1 parent 7ea5933 commit d2eedee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows-src/website.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export default createWorkflow(({setWorkflowName, addTrigger, addJob}) => {
run('yarn workspace @databases/website build');

// run(`npm install netlify-cli`);
run(
interpolate`mkdir .netlify && echo '{"siteId": "${secrets.NETLIFY_SITE_ID}"}' > .netlify/state.json`,
);
// run(
// interpolate`mkdir .netlify && echo '{"siteId": "${secrets.NETLIFY_SITE_ID}"}' > .netlify/state.json`,
// );
when(eq(github.event_name, `push`), () => {
run(
`netlify deploy --cwd . --filter @databases/website --prod --dir=packages/website/out`,
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ 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 --cwd . --filter @databases/website --prod
--dir=packages/website/out
Expand Down

0 comments on commit d2eedee

Please sign in to comment.