-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (55 loc) · 1.47 KB
/
docusaurus.yml
File metadata and controls
67 lines (55 loc) · 1.47 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Build and Deploy Docusaurus
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:
- name: Checkout repository
uses: actions/checkout@v5
- name: Initialize Node.JS for this job
uses: actions/setup-node@v6
with:
node-version: "20.2" # zafixovat verziu
- name: Run NodeJS build
run: npm run build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v4
with:
name: github-pages
path: build/
test-of-html:
runs-on: ubuntu-24.04
needs: build-job
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Download build/ artifacts
uses: actions/download-artifact@v5
with:
name: github-pages
path: build/
- name: Initialize Node.JS for this job
uses: actions/setup-node@v6
with:
node-version: "20.x" # ak to pouzivas na viacerych miestach, tak to tahat z jedneho miesta
- name: Run HTML tests
run: |
npm install htmlhint -g
htmlhint --version
npx htmlhint build/
deploy-page:
needs: test-of-html
permissions:
pages: write
id-token: write
runs-on: ubuntu-24.04
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4