Skip to content

Commit 7194b42

Browse files
author
NewSkyLine
committed
Probably finished all
1 parent eb0913f commit 7194b42

10 files changed

Lines changed: 314 additions & 146 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Simple workflow for deploying static content to GitHub Pages
2-
name: Deploy static content to Pages
1+
name: Deploy content to GH-Pages
32

43
on:
54
schedule:
@@ -20,7 +19,6 @@ concurrency:
2019
cancel-in-progress: true
2120

2221
jobs:
23-
# Single deploy job since we're just deploying
2422
deploy:
2523
environment:
2624
name: github-pages
@@ -30,23 +28,27 @@ jobs:
3028
- name: Checkout
3129
uses: actions/checkout@v4
3230
- name: Set up Node
33-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
3432
with:
35-
node-version: 18
33+
node-version: 20
3634
cache: "npm"
3735
- name: Install dependencies
3836
run: npm install
3937
- name: Build
40-
run: npm run dev
41-
# - name: Generate
42-
# run: npm run dev
38+
run: npm run deploy
39+
env:
40+
USERNAME: ${{ secrets.USERNAME }}
41+
PASSWORD: ${{ secrets.PASSWORD }}
42+
SERVER: ${{ secrets.SERVER }}
43+
SCHOOL: ${{ secrets.SCHOOL }}
44+
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
45+
NOTION_DATABASE_ID: ${{ secrets.NOTION_DATABASE_ID }}
4346
- name: Setup Pages
44-
uses: actions/configure-pages@v3
47+
uses: actions/configure-pages@v4
4548
- name: Upload artifact
46-
uses: actions/upload-pages-artifact@v2
49+
uses: actions/upload-pages-artifact@v3
4750
with:
48-
# Upload dist repository
4951
path: "./dist"
5052
- name: Deploy to GitHub Pages
5153
id: deployment
52-
uses: actions/deploy-pages@v2
54+
uses: actions/deploy-pages@v4

.github/workflows/scheduled.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
dist/
2-
node_modules/
2+
node_modules/
3+
.env

.vscode/launch.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
"program": "${workspaceFolder}/dist/app.js",
1515
"console": "integratedTerminal",
1616
"outFiles": [
17-
"${workspaceFolder}/**/*.js"
18-
]
17+
"${workspaceFolder}/dist/**/*.js"
18+
],
19+
"envFile": "${workspaceFolder}/.env"
1920
}
2021
]
2122
}

package-lock.json

Lines changed: 74 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,20 @@
22
"homepage": "https://newskylinetwitter.github.io/",
33
"name": "webuntis_server",
44
"version": "1.0.0",
5-
"description": "",
6-
"main": "src/app.cjs",
75
"scripts": {
86
"test": "echo \"Error: no test specified\" && exit 1",
9-
"dev": "tsc && node dist/app.js",
7+
"dev": "tsc && node --env-file .env dist/app.js",
108
"build": "tsc",
11-
"deploy": "gh-pages -d dist"
9+
"deploy": "tsc && node dist/app.js"
1210
},
13-
"author": "",
14-
"license": "ISC",
1511
"devDependencies": {
1612
"@types/luxon": "^3.4.2",
1713
"@types/node": "^20.11.5",
14+
"dotenv": "^16.4.0",
1815
"typescript": "^5.3.3"
1916
},
2017
"dependencies": {
18+
"@notionhq/client": "^2.2.14",
2119
"@touch4it/ical-timezones": "^1.9.0",
2220
"ical-generator": "^6.0.1",
2321
"luxon": "^3.4.4",

0 commit comments

Comments
 (0)