Skip to content

Update main.yml

Update main.yml #3

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@v2
- name: Set up Node.js
uses: actions/setup-node@v2
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@v2
with:
name: dist-files
path: dist/ # 构建好的静态文件路径