This commit is contained in:
Zuoling Rong
2025-01-31 21:51:24 +08:00
parent 6ea490bf69
commit 09f493ddbc
50 changed files with 18130 additions and 5 deletions

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

@@ -0,0 +1,35 @@
name: Deploy Navigation Site
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: |
npm init -y
npm install js-yaml
- name: Generate site
run: node generator.js
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: .
clean: true