-
Notifications
You must be signed in to change notification settings - Fork 127
72 lines (67 loc) · 2.53 KB
/
main.yml
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
69
70
71
72
name: main
on: [push, pull_request, workflow_dispatch]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm ls
- run: ./node_modules/.bin/eslint ./
- run: ./node_modules/.bin/stylelint ./**/*.css ./**/*.html ./**/*.js
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
- uses: actions/cache@v4
with:
path: |
_site-root/
_site/
key: generated-site-dir
- uses: actions/jekyll-build-pages@v1
- run: |
mkdir -p _site-root
ln -s ../_site/ _site-root/${{ github.event.repository.name }}
local-links-check:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/cache@v4
with:
path: |
_site-root/
_site/
key: generated-site-dir
- uses: ruzickap/action-my-broken-link-checker@v2
with:
url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
pages_path: ./_site-root/
cmd_params: >
--buffer-size=8192 --color=always --skip-tls-verification
--include="^https://${{ github.repository_owner }}[.]github[.]io/${{ github.event.repository.name }}/"
--exclude="^https://github[.]com/rspamd/rspamd[.]com/edit/master/"
--exclude="^https://${{ github.repository_owner }}[.]github[.]io/${{ github.event.repository.name }}/(doc/lua/((lua|rspamd)_.+|ucl)[.]html(#.+)?|.*#top)$"
external-links-check:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/cache@v4
with:
path: |
_site-root/
_site/
key: generated-site-dir
- uses: ruzickap/action-my-broken-link-checker@v2
with:
url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
pages_path: ./_site-root/
cmd_params: >
--buffer-size=8192 --color=always --skip-tls-verification
--verbose --max-connections=10
--exclude="^https://${{ github.repository_owner }}[.]github[.]io/${{ github.event.repository.name }}/"
--exclude="^https://github[.]com/rspamd/rspamd[.]com/edit/master/"
--exclude="^https://rspamd[.]com/${{ github.event.repository.name }}/$"
--exclude="^https://www[.]ozon[.]ru/$"
--exclude="^https://rspamd[.]com/${{ github.event.repository.name }}/."