Skip to content

Commit 4200a02

Browse files
update actions workflow
1 parent 97e44fd commit 4200a02

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,16 @@ jobs:
3939
env:
4040
WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
4141
run: |
42-
echo "// This file is auto-generated during deployment" > config.js
43-
echo "window.DISCORD_WEBHOOK_URL = \"$WEBHOOK_URL\";" >> config.js
42+
# Create config with debugging
43+
echo 'console.log("Config script starting");' > config.js
44+
echo 'window.DISCORD_WEBHOOK_URL = "'"$WEBHOOK_URL"'";' >> config.js
45+
echo 'console.log("Config script finished - webhook URL:", window.DISCORD_WEBHOOK_URL);' >> config.js
4446
4547
echo "Config file updated. Contents (webhook hidden):"
4648
cat config.js | sed 's|https://[^"]*|[WEBHOOK_URL_HIDDEN]|'
49+
50+
echo "File exists and is readable:"
51+
ls -l config.js
4752
4853
- name: Setup Pages
4954
uses: actions/configure-pages@v4

index.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,18 @@
7777
}
7878
}
7979
</style>
80-
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.7.7/handlebars.min.js"></script>
80+
<script>
81+
// Add debugging for script load order
82+
console.log('Start of head scripts');
83+
window.addEventListener('DOMContentLoaded', () => {
84+
console.log('DOMContentLoaded - webhook URL:', window.DISCORD_WEBHOOK_URL);
85+
});
86+
</script>
8187
<script src="./config.js"></script>
88+
<script>console.log('After config.js load - webhook URL:', window.DISCORD_WEBHOOK_URL);</script>
89+
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.7.7/handlebars.min.js"></script>
90+
<script type="module" crossorigin src="./assets/main.tsx.ed6f4f5c.js"></script>
91+
<link rel="stylesheet" href="./assets/main.css">
8292
</head>
8393
<body class="is-preload">
8494
<!-- Toast Container -->

0 commit comments

Comments
 (0)