File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,17 @@ jobs:
54
54
uses : actions/checkout@v2
55
55
with :
56
56
fetch-depth : 0
57
- - name : Build dpctl & docs
57
+ - name : Build dpctl
58
58
shell : bash -l {0}
59
59
run : |
60
60
source /opt/intel/oneapi/setvars.sh
61
61
python setup.py develop
62
62
python -c "import dpctl; print(dpctl.__version__)"
63
+ - name : Build docs
64
+ shell : bash -l {0}
65
+ run : |
66
+ # Ensure that SYCL libraries are on LD_LIBRARY_PATH
67
+ source /opt/intel/oneapi/setvars.sh
63
68
cd docs
64
69
mkdir -p build && cd build && rm -rf *
65
70
wget https://github.com/vovkos/doxyrest/releases/download/doxyrest-2.1.2/doxyrest-2.1.2-linux-amd64.tar.xz
@@ -71,17 +76,22 @@ jobs:
71
76
cd ..
72
77
mv generated_docs/docs ~/docs
73
78
git clean -dfx
79
+ cd ..
80
+ - name : Publish docs
81
+ shell : bash -l {0}
82
+ run : |
74
83
git remote add tokened_docs https://IntelPython:${{ secrets.GITHUB_TOKEN }}@github.com/IntelPython/dpctl.git
75
84
git fetch tokened_docs
76
- git checkout --trak tokened_docs/gh-pages
85
+ git checkout --track tokened_docs/gh-pages
86
+ echo `pwd`
77
87
cd master
78
88
git rm -rf *
79
89
mv ~/docs/* .
80
90
git add .
81
91
git config --global user.name 'github-actions[doc-deploy-bot]'
82
92
git config --gloabl user.email 'github-actions[doc-deploy-bot]@users.noreply.github.com'
83
93
git commit -m "Latest docs."
84
- git push tokened_docs gh_pages
94
+ git push tokened_docs gh-pages
85
95
# - name: Deploy docs
86
96
# uses: peaceiris/actions-gh-pages@v3
87
97
# with:
You can’t perform that action at this time.
0 commit comments