File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 44 # Trigger the workflow every time you push to the `main` branch
55 # Using a different branch name? Replace `main` with your branch’s name
66 push :
7- branches :
8- - main
97 # Allows you to run this workflow manually from the Actions tab on GitHub.
108 workflow_dispatch :
119
4240 - name : Build
4341 run : pnpm build
4442 - name : Deploy to SFTP
45- if : github.ref == 'refs/heads/develop '
43+ if : github.ref == 'refs/heads/main '
4644 env :
4745 SFTP_HOST : ${{ secrets.SFTP_HOST }}
4846 SFTP_USERNAME : ${{ secrets.SFTP_USERNAME }}
Original file line number Diff line number Diff line change @@ -68,7 +68,9 @@ const appWebPreviewUrl = import.meta.env.APP_WEB_PREVIEW_URL;
6868 return `${base}${location.pathname}${location.search}${location.hash}`;
6969 };
7070 const launchButtons = document.querySelectorAll(".launch-btn");
71- launchButtons.forEach((button) => {
72- button.setAttribute("href", getPath(button.getAttribute("href")));
73- });
71+ for (const button of launchButtons) {
72+ const href = button.getAttribute("href");
73+ if (!href) continue;
74+ button.setAttribute("href", getPath(href));
75+ }
7476</script >
You can’t perform that action at this time.
0 commit comments