FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
patternfly-react/.github/workflows/documentation.yml at main · patternfly/patternfly-react · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
patternfly
/
patternfly-react
Public
Notifications
You must be signed in to change notification settings
Fork
392
Star
862
Code
Issues
215
Pull requests
24
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
patternfly-react
/
.github
/
workflows
/
documentation.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
65 lines (59 loc) · 2.08 KB
Breadcrumbs
patternfly-react
/
.github
/
workflows
/
documentation.yml
Copy path
File metadata and controls
65 lines (59 loc) · 2.08 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
name
:
Documentation
on
:
pull_request_target
:
issue_comment
:
types
:
[created]
workflow_call
:
inputs
:
is-release
:
description
:
Whether this is invoked from the Release workflow (skip PR permission gating).
type
:
boolean
required
:
false
default
:
false
secrets
:
SURGE_LOGIN
:
required
:
true
SURGE_TOKEN
:
required
:
true
GH_PR_TOKEN
:
required
:
true
jobs
:
check-permissions
:
uses
:
patternfly/.github/.github/workflows/check-team-membership.yml@fdb52a63a2220ec8a3b6c2d43f312cda708ffa06
secrets
:
inherit
deploy
:
name
:
Build, test & deploy
runs-on
:
ubuntu-latest
needs
:
check-permissions
if
:
>-
always() &&
!cancelled() &&
(inputs.is-release || needs.check-permissions.outputs.allowed == 'true')
env
:
SURGE_LOGIN
:
${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN
:
${{ secrets.SURGE_TOKEN }}
GH_PR_TOKEN
:
${{ secrets.GH_PR_TOKEN }}
GH_PR_NUM
:
${{ needs.check-permissions.outputs.pr-number }}
steps
:
-
name
:
Check out project from PR branch
if
:
github.event_name == 'pull_request_target' || github.event_name == 'issue_comment'
uses
:
actions/checkout@v4
with
:
#
Checkout the merge commit so that we can access the PR's changes.
#
This is nessesary because `pull_request_target` checks out the base branch (e.g. `main`) by default.
ref
:
refs/pull/${{ env.GH_PR_NUM }}/head
-
name
:
Check out project
if
:
inputs.is-release || github.event_name == 'workflow_call'
uses
:
actions/checkout@v4
-
name
:
Set up and build project
uses
:
./.github/actions/setup-project
-
name
:
Build documentation
run
:
yarn build:docs
-
name
:
Upload documentation
if
:
always()
run
:
node .github/upload-preview.mjs packages/react-docs/public
-
name
:
Run accessibility tests
run
:
yarn serve:docs & yarn test:a11y
-
name
:
Upload accessibility results
if
:
always()
run
:
node .github/upload-preview.mjs packages/react-docs/coverage
Back
|
FazBrowse Home
|
New Git URL