-
Notifications
You must be signed in to change notification settings - Fork 5
68 lines (62 loc) · 1.57 KB
/
Copy pathvalidation.yml
File metadata and controls
68 lines (62 loc) · 1.57 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
68
---
name: Validate website
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
validate_website_gh_com:
if: github.server_url == 'https://github.com'
runs-on: ubuntu-latest
env:
SITE_URL: https://docs.aucyber.com.au/
EDIT_URL: https://github.com/aucloud/aucloud.github.io/edit/main/docs
REPO_URL: https://github.com/aucloud/aucloud.github.io
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install system deps
run: make ubuntu-deps
- name: Install dependencies
run: make install
- name: pre-commit
run: |
make pre-commit-install
make pre-commit-run
- name: Check the website
env:
ENABLED_HTMLPROOFER: "True"
shell: bash
run: |
make docs-validate
validate_website_ghes:
if: github.server_url != 'https://github.com'
runs-on: self-hosted
env:
SITE_URL: ${{ secrets.SITE_URL }}
EDIT_URL: ${{ secrets.EDIT_URL }}
REPO_URL: ${{ secrets.REPO_URL }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install dependencies
run: make install
- name: pre-commit
run: |
make pre-commit-install
make pre-commit-run
- name: Check the website
env:
ENABLED_HTMLPROOFER: "True"
run: make docs-validate