MYDOC/.gitea/workflows/demo.yaml
洪剑峰 bb825019b6
Some checks failed
Node.js CI / build (push) Failing after 3m27s
123
2024-08-13 16:52:11 +08:00

28 lines
902 B
YAML

name: Node.js CI
on: [push]
jobs:
build:
steps:
- run: ls -lR
- name: Check out repository code
uses: https://gitea.com/actions/checkout@v3
- run: ls -lR
- name: Use Node.js 1
uses: https://gitea.com/actions/setup-node@v4
with:
node-version: '20'
- run: yarn config get registry
- run: npm config get registry
- run: yarn config set registry https://registry.npm.taobao.org
- run: npm config set registry https://registry.npm.taobao.org
- run: yarn cache clean
- run: ls -lR
- name: Install dependencies
run: yarn
- name: Build Docusaurus website
run: yarn build
- run: ls
- run: docker build -t JeffDocusaurus .
- run: docker run -v /home/project/Docusaurus:/usr/share/nginx/html --name=JeffDocusaurus -d -p 9080:80 JeffDocusaurus