Skip to content

Commit 08f1784

Browse files
committed
Plausible
1 parent 3abd3eb commit 08f1784

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

.github/workflows/deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
sudo mv elm /usr/local/bin
2323
2424
- name: Build Project
25-
run: elm make src/Main.elm
25+
run: elm make src/Main.elm --output=index.js
2626

2727
- name: Move file to the ./public folder
28-
run: mkdir public && mv index.html public/index.html
28+
run: mkdir public && mv index.html public/index.html && mv index.js public/index.js
2929

3030
- name: Deploy to GitHub Pages
3131
uses: peaceiris/actions-gh-pages@v3

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
elm-stuff/
2-
index.html
2+
index.js

index.html

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<html>
2+
<head>
3+
<meta charset="UTF-8">
4+
<title>Main</title>
5+
<script src="index.js"></script>
6+
<script defer data-domain="cong1kit3.ethanppl.com" src="https://plausible.ethanppl.com/js/script.js"></script>
7+
<style>
8+
body {
9+
margin: 0px;
10+
}
11+
</style>
12+
</head>
13+
14+
<body>
15+
<div id="myapp"></div>
16+
<script>
17+
var app = Elm.Main.init({
18+
node: document.getElementById('myapp')
19+
});
20+
</script>
21+
</body>
22+
</html>

0 commit comments

Comments
 (0)