Skip to content

Commit

Permalink
submit
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan31 committed Dec 18, 2024
1 parent 9733be6 commit d5d5abf
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 43 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build Project

on:
push:
branches:
- master

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest

steps:
# 1. 拉取代码
- name: Checkout Code
uses: actions/checkout@v3

# 2. 设置 Node.js 环境(使用最新版)
- name: Setup Node.js version
uses: actions/setup-node@v3
with:
node-version: '15.14.0'
cache: 'npm'

# 3. 安装依赖
- name: Install Dependencies
run: npm install

# 4. 构建项目
- name: Build Project
run: npm run build

# 5. 构建结果 推送到 dist 分支
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
branch: dist
folder: ./docs/.vuepress/dist
43 changes: 0 additions & 43 deletions .github/workflows/static.yml

This file was deleted.

0 comments on commit d5d5abf

Please sign in to comment.