Compare commits
3
Commits
a7753d33e0
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73e4b78686 | ||
|
|
3d856f51f7 | ||
|
|
19f62bf52c |
@@ -0,0 +1,22 @@
|
||||
name: ci-visitor
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
build:
|
||||
name: Build (Node)
|
||||
runs-on: node16
|
||||
steps:
|
||||
- name: Checkout
|
||||
run: |
|
||||
git clone --depth 1 --branch "$GITHUB_REF_NAME" "https://oauth2:${{ secrets.GITHUB_TOKEN }}@gitlab.scdswj.cn/hzd/visitor.git" . 2>&1 | tail -2
|
||||
git log --oneline -1
|
||||
- name: Install
|
||||
run: |
|
||||
npm config set registry https://registry.npmmirror.com
|
||||
npm install --no-audit --no-fund --legacy-peer-deps
|
||||
- name: Build
|
||||
run: |
|
||||
npm run build
|
||||
du -sh dist 2>/dev/null || true
|
||||
Reference in New Issue
Block a user