Skip to content

自动化构建

自动化构建 #6

Workflow file for this run

name: CI Workflow
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3 # 更新为 v3
- name: Set up Node.js
uses: actions/setup-node@v3 # 更新为 v3
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Upload production-ready files
uses: actions/upload-artifact@v3 # 更新为 v3
with:
name: dist-files
path: dist/ # 构建好的静态文件路径