Skip to content

Commit 8c69611

Browse files
committed
Restart the project
0 parents  commit 8c69611

14 files changed

Lines changed: 665 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test build on Pull Requests
2+
3+
on:
4+
# Runs on pushes to PR against `main` branch
5+
push:
6+
pull_request:
7+
branches:
8+
- main
9+
10+
# Run this workflow manually
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
actions: read
18+
19+
jobs:
20+
test-build:
21+
name: Test build on Pull Request
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v6
26+
- name: Set up Node
27+
uses: actions/setup-node@v6
28+
with:
29+
node-version: ">=21"
30+
cache: 'npm'
31+
- name: Install dependencies
32+
run: npm install
33+
- name: Build Webpage
34+
run: npm run build

.github/workflows/deploy.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ['main']
7+
paths: ['src/**', '*.html', .github/workflows/*.yml, package.json]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
actions: read
17+
18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: 'deploy-production'
21+
cancel-in-progress: true
22+
23+
jobs:
24+
build-deploy:
25+
name: Build application on `main`
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v6
30+
- name: Set up Node
31+
uses: actions/setup-node@v6
32+
with:
33+
node-version: ">=21"
34+
cache: 'npm'
35+
- name: Install dependencies
36+
run: npm install
37+
- name: Build Webpage
38+
run: npm run build
39+
- name: Upload Page artifact to GitHub Pages
40+
uses: actions/upload-pages-artifact@v4
41+
with:
42+
path: './dist' # Upload dist repository
43+
retention-days: 30
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

bun.lock

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

0 commit comments

Comments
 (0)