MYDOC/.gitea/workflows/demo.yaml

17 lines
500 B
YAML
Raw Normal View History

2024-08-05 17:16:44 +08:00
name: Node.js CI
2024-08-05 17:06:07 +08:00
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
2024-07-31 10:55:19 +08:00
on: [push]
jobs:
2024-08-05 17:15:35 +08:00
build:
2024-08-05 17:07:51 +08:00
steps:
2024-08-05 17:18:27 +08:00
- name: Check out repository code
uses: actions/checkout@v3
2024-08-05 17:32:22 +08:00
- name: Use gitea Node.js
2024-08-05 17:39:13 +08:00
uses: https://gitea.com/actions/setup-node@v4
2024-08-05 17:38:36 +08:00
with:
2024-08-05 17:19:47 +08:00
node-version: '14' # 确保这是与你的项目兼容的Node.js版本
- name: Install dependencies
2024-08-05 17:39:13 +08:00
run: yarn
2024-08-05 17:19:47 +08:00
- name: Build Docusaurus website
2024-08-05 17:45:00 +08:00
run: yarn build