FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
oneMath/.github/workflows/documentation.yml at develop · uxlfoundation/oneMath · GitHub
uxlfoundation
oneMath
Repository navigation
Code
Issues
58
(58)
Pull requests
42
(42)
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
oneMath
/
.github
/
workflows
/
documentation.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
64 lines (61 loc) · 1.81 KB
Breadcrumbs
oneMath
/
.github
/
workflows
/
documentation.yml
Copy path
File metadata and controls
64 lines (61 loc) · 1.81 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
name
:
Documentation
permissions
:
read-all
#
Trigger for PR or merge to develop branch
on
:
push
:
branches
:
develop
paths
:
-
'
docs/**
'
pull_request
:
paths
:
-
'
docs/**
'
workflow_dispatch
:
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
#
v4.1.5
-
uses
:
actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
#
v5.1.0
with
:
python-version
:
'
3.11
'
cache
:
'
pip
'
-
name
:
Install Dependencies
run
:
pip install -r docs/requirements.txt
-
name
:
Configure & Build
run
:
|
cmake -DCMAKE_VERBOSE_MAKEFILE=on -B build docs
cmake --build build
-
uses
:
actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
#
v4.3.3
with
:
name
:
docs
path
:
build/Documentation/html
publish
:
needs
:
build
if
:
github.event_name == 'workflow_dispatch' || github.event_name == 'push' && github.ref == 'refs/heads/develop'
runs-on
:
ubuntu-latest
permissions
:
contents
:
write
steps
:
-
uses
:
actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
#
v4.1.5
with
:
ref
:
gh-pages
path
:
gh-pages
-
name
:
Remove old site
run
:
rm -rf gh-pages/*
-
uses
:
actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e
#
v4.1.7
with
:
name
:
docs
path
:
gh-pages
-
name
:
Push to GitHub Pages
run
:
|
cd gh-pages
touch .nojekyll
git add .
if git diff --cached --quiet; then
echo "No documentation changes to publish"
exit 0
fi
git config --global user.name "GitHub Actions"
git config --global user.email github-actions@github.com
git commit -m "Update documentation"
git push --force origin gh-pages
Back
|
FazBrowse Home
|
New Git URL