Skip to content

Commit

Permalink
fix(ci): update deploy-preview script publish dir
Browse files Browse the repository at this point in the history
  • Loading branch information
BatuhanW committed May 30, 2024
1 parent e2320e1 commit f8d0836
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/example-previews-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ jobs:
- uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ github.event.comment.id }}
reactions: |
"+1"
"rocket"
reactions: rocket
- name: Github API Request
id: request
uses: octokit/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/scripts/deploy-previews.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ const setOutput = (output) =>

const getPublishDir = (exampleName) => {
if (fs.existsSync(`./examples/${exampleName}/next-env.d.ts`))
return "./.next";
return `./examples/${exampleName}/.next`;

if (fs.existsSync(`./examples/${exampleName}/remix.config.js`))
return "./build";
return `./examples/${exampleName}/build`;

return "./dist";
return `./examples/${exampleName}/dist`;
};

const getNetlifyConfigPath = (exampleName) => {
Expand Down

0 comments on commit f8d0836

Please sign in to comment.