MYDOC/.gitea/workflows/demo.yaml

19 lines
472 B
YAML
Raw Normal View History

2024-08-05 17:16:44 +08:00
name: Node.js CI
2024-07-31 10:55:19 +08:00
on: [push]
jobs:
2024-08-05 18:35:44 +08:00
build:
2024-08-05 19:18:33 +08:00
steps:
2024-08-05 19:31:27 +08:00
- name: Check out repository code
uses: https://gitea.com/actions/checkout@v3
2024-08-05 19:50:06 +08:00
- run: ls -lR
2024-08-05 20:07:24 +08:00
- name: Use Node.js
2024-08-05 20:44:25 +08:00
uses: actions/setup-node@v4.0.3
2024-08-05 18:35:44 +08:00
with:
2024-08-05 20:44:25 +08:00
node-version: '20.x'
cache: 'yarn'
2024-08-05 20:14:08 +08:00
- run: yarn --version
2024-08-05 20:07:24 +08:00
- name: Install dependencies
2024-08-05 20:11:58 +08:00
run: yarn --frozen-lockfile
2024-08-05 18:35:44 +08:00
- name: Build Docusaurus website
run: yarn build