-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (83 loc) · 2.56 KB
/
gh-pages.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# SPDX-FileCopyrightText: 2022 WebReady Projects <https://github.com/wr-projects/>
#
# SPDX-License-Identifier: MIT
---
name: Pipeline - GHPages
on:
push:
paths:
- '.github/workflows/wiki.yml'
branches:
- main
pull_request:
paths:
- 'docs/**'
- '.github/workflows/wiki.yml'
branches:
- main
jobs:
lint-docs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [16.10.0]
steps:
# More info: https://github.com/step-security/harden-runner.
- name: Harden Runner
id: harden_runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4
with:
egress-policy: audit
# More info: https://github.com/actions/checkout.
- name: Checkout & Authentication
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
persist-credentials: false
fetch-depth: 0
#
- name: Corepack Enable
run: corepack enable
- name: Use Node.js v16
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 16.10.0
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Lint (docs)
run: pnpm lint:docs
wiki:
runs-on: ubuntu-latest
steps:
# More info: https://github.com/step-security/harden-runner.
- name: Harden Runner
id: harden_runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4
with:
egress-policy: audit
# More info: https://github.com/peter-murray/workflow-application-token-action.
- name: Get token
id: get_token
uses: peter-murray/workflow-application-token-action@dc0413987a085fa17d19df9e47d4677cf81ffef3
with:
application_id: ${{ secrets.ID_CHECKDEPSBOT }}
application_private_key: ${{ secrets.PEM_CHECKDEPSBOT }}
# More info: https://github.com/actions/checkout.
- name: Checkout & Authentication
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
persist-credentials: false
fetch-depth: 0
- name: Check GitHub Pages Status
uses: crazy-max/ghaction-github-status@
with:
pages_threshold: major_outage
- name: Deploy
if: success()
uses: crazy-max/ghaction-github-pages@
with:
target_branch: gh-pages
build_dir: public
env:
GITHUB_TOKEN: