From 08e8eed4503a3a6b06703a38dc6fc3f1b6a791d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=AA=E5=89=91=E5=B3=B0?= <1024489@qq.com> Date: Mon, 5 Aug 2024 17:02:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/demo.yaml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index acd5ac3..5d96453 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -1,9 +1,20 @@ -name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +name: Node.js CI + on: [push] jobs: - Explore-Gitea-Actions: - runs-on: TestRuner + build: steps: - - run: echo " 🚀The job was automatically triggered by a ${{ gitea.event_name }} event." \ No newline at end of file + - name: Checkout code + uses: actions/checkout@v3 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '14' # 确保这是与你的项目兼容的Node.js版本 + + - name: Install dependencies + run: yarn install + + - name: Build Docusaurus website + run: yarn build \ No newline at end of file