From 19f62bf52cd4382a5d7dc086f6f1203596b72d80 Mon Sep 17 00:00:00 2001 From: lzyyj Date: Thu, 8 Oct 2026 16:45:30 +0800 Subject: [PATCH] ci: add build workflow --- .gitea/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..9fbf81c --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -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 + - name: Build + run: | + npm run build + du -sh dist 2>/dev/null || true