MYDOC/.gitea/workflows/demo.yaml

32 lines
969 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-06 13:36:55 +08:00
steps:
- run: ls -lR
2024-08-05 19:31:27 +08:00
- name: Check out repository code
2024-08-13 17:03:55 +08:00
uses: http://47.116.170.60:3300/jeff/checkout@v3
2024-08-05 19:50:06 +08:00
- run: ls -lR
2024-08-06 13:36:55 +08:00
- name: Use Node.js 1
2024-08-13 17:03:55 +08:00
uses: http://47.116.170.60:3300/jeff/setup-node@v4
2024-08-05 18:35:44 +08:00
with:
2024-08-06 07:56:57 +08:00
node-version: '20'
2024-08-06 14:14:54 +08:00
2024-08-13 18:55:25 +08:00
- run: yarn config get registry
- run: npm config get registry
- run: yarn config set registry http://47.116.170.60:40087
- run: npm config set registry http://47.116.170.60:40087
- run: yarn config get registry
- run: npm config get registry
- run: yarn cache clean
- run: ls -lR
2024-08-05 20:07:24 +08:00
- name: Install dependencies
2024-08-06 13:36:55 +08:00
run: yarn
2024-08-05 18:35:44 +08:00
- name: Build Docusaurus website
2024-08-06 16:05:15 +08:00
run: yarn build
2024-08-13 16:23:37 +08:00
- run: ls
2024-08-13 16:57:14 +08:00
- run: docker build -t jeffdoc .
2024-08-13 18:55:25 +08:00
- run: docker stop jeffdoc
- run: docker rm jeffdoc
2024-08-13 17:27:48 +08:00
- run: docker run --name=jeffdoc -d -p 9080:80 jeffdoc