-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.09 KB
/
docusaurus.yml
File metadata and controls
47 lines (42 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: docusaurus cicd
run-name: ${{ github.actor }} is trying actions to make docusaurus
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-job:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- name: Initialize Node.JS for this job
uses: actions/setup-node@v6
with:
node-version: '20.x'
- run: npm version
- run: npm run build
- name: Archive build/ artifacts
uses: actions/upload-artifact@v4
with:
name: build-folder-artifacts-docusaurus
path: build/
test-of-html:
runs-on: ubuntu-24.04
needs: build-job
steps:
- uses: actions/checkout@v5
- name: Initialize Node.JS for this job
uses: actions/setup-node@v6
with:
node-version: '20.x'
- run: |
npm install htmlhint -g
htmlhint --version
npx htmlhint build/
- name: Download build/ artifacts
uses: actions/download-artifact@v5
with:
name: build-folder-artifacts-docusaurus