Skip to content

Commit 92499bf

Browse files
committed
Initial commit
0 parents  commit 92499bf

8 files changed

Lines changed: 87 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pages: write
12+
id-token: write
13+
environment:
14+
name: github-pages
15+
url: ${{ steps.deployment.outputs.page_url }}
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Build site
21+
run: node build.js
22+
23+
- name: Setup Pages
24+
uses: actions/configure-pages@v5
25+
26+
- name: Upload artifact
27+
uses: actions/upload-pages-artifact@v3
28+
with:
29+
path: './build'
30+
31+
- name: Deploy to GitHub Pages
32+
id: deployment
33+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
build
2+
node_modules
3+
4+
.DS_Store
5+
.env

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"arrowParens": "avoid",
3+
"bracketSpacing": true,
4+
"semi": false,
5+
"singleQuote": true,
6+
"tabWidth": 2,
7+
"trailingComma": "all"
8+
}

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pastor.bot

build.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const fs = require('fs')
2+
const path = require('path')
3+
4+
const src = 'src'
5+
const dest = 'build'
6+
7+
const build = () => {
8+
if (!fs.existsSync(dest)) fs.mkdirSync(dest)
9+
fs.readdirSync(src).forEach(file => {
10+
fs.copyFileSync(path.join(src, file), path.join(dest, file))
11+
})
12+
console.log('Build complete')
13+
}
14+
15+
build()
16+
17+
if (process.argv[2] === '--watch') {
18+
fs.watch(src, () => build())
19+
console.log('Watching for changes')
20+
}

src/global.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
body {
2+
align-items: center;
3+
display: flex;
4+
font-family: system-ui;
5+
height: 100vh;
6+
justify-content: center;
7+
margin: 0;
8+
}

src/global.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('Superwork')

src/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Superwork</title>
5+
<link rel="stylesheet" href="global.css" />
6+
<script defer src="global.js"></script>
7+
</head>
8+
<body>
9+
<a href="https://discord.gg/ng8RNjm5Jz">Join our Discord</a>
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)