This commit is contained in:
Kevin Peng
2025-04-20 06:27:16 +08:00
commit 59eea95626
159 changed files with 43441 additions and 0 deletions

37
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build project
run: |
mkdir -p dist
cp -r src/css/* dist/
cp -r src/js/* dist/
cp -r src/images/* dist/
# Add any build steps here (e.g., minification, bundling)
# Example: npm run build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_branch: gh-pages