add actions
Some checks failed
CI / build (push) Failing after 28s

This commit is contained in:
Jeffrey Hsu 2024-10-02 21:43:26 +08:00
parent d1a3ff8c2f
commit 247bbc76a2

View File

@ -0,0 +1,34 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16' # 可以根据需要选择 Node.js 版本
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: vue-build
path: dist/ # Vue.js 默认构建输出目录