wb-table/.github/workflows/main.yaml

38 lines
646 B
YAML
Raw Normal View History

2023-02-19 14:52:56 +08:00
name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: 18.10.0
2023-02-19 15:08:02 +08:00
- name: Checkout
uses: actions/checkout@v3
2023-02-19 14:52:56 +08:00
- name: 安装依赖并编译
run: |
2023-02-19 15:05:18 +08:00
pwd
2023-02-19 15:06:42 +08:00
ls -lsh
2023-02-19 14:52:56 +08:00
npm i
npm run build
2023-02-19 14:59:24 +08:00
- name: 上传dist目录
uses: actions/upload-pages-artifact@v1
with:
path: './dist'
- name: 部署github pages
id: deployment
uses: actions/deploy-pages@v1