Skip to content

Commit 64ecc52

Browse files
try publishing
1 parent d41cb41 commit 64ecc52

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/generate-docs.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,49 +35,49 @@ jobs:
3535
- name: Install Lua
3636
run: |
3737
sudo apt-get install liblua5.2-dev
38-
- name: Setup miniconda
39-
uses: conda-incubator/setup-miniconda@v2
40-
with:
41-
activate-environment: dpctl
42-
python-version: 3.7
43-
auto-activate-base: false
44-
- name: Conda info
45-
shell: bash -l {0}
38+
- name: Install CMake
4639
run: |
47-
conda info
48-
conda list
40+
sudo apt-get install cmake=3.19
41+
- name: Setup Python
42+
uses: actions/setup-python@v2
43+
with:
44+
python-version: '3.8'
45+
architecture: x64
4946
- name: Install sphinx dependencies
5047
shell: bash -l {0}
5148
run: |
52-
conda install -y -c conda-forge numpy cython sphinx sphinx_rtd_theme
53-
conda install -y -c conda-forge cmake=3.19 doxygen pydot setuptools make
49+
pip install numpy cython setuptools sphinx sphinx_rtd_theme
50+
pip install doxygen pydot
5451
- name: Checkout repo
5552
uses: actions/checkout@v2
53+
with:
54+
fetch-depth: 0
5655
- name: Build dpctl & docs
5756
shell: bash -l {0}
5857
run: |
5958
source /opt/intel/oneapi/setvars.sh
6059
python setup.py develop
60+
python -c "import dpctl; print(dpctl.__version__)"
6161
cd docs
6262
mkdir -p build && cd build && rm -rf *
6363
wget https://github.com/vovkos/doxyrest/releases/download/doxyrest-2.1.2/doxyrest-2.1.2-linux-amd64.tar.xz
6464
tar xf doxyrest-2.1.2-linux-amd64.tar.xz
65-
cmake .. -DDPCTL_USE_MULTIVERSION_TEMPLATE=ON -DDPCTL_ENABLE_DOXYREST=ON -DDoxyrest_DIR=`pwd`/doxyrest-2.1.2-linux-amd64
65+
cmake .. -DDPCTL_USE_MULTIVERSION_TEMPLATE=ON \
66+
-DDPCTL_ENABLE_DOXYREST=ON \
67+
-DDoxyrest_DIR=`pwd`/doxyrest-2.1.2-linux-amd64
6668
make Sphinx
6769
cd ..
6870
mv generated_docs/docs ~/docs
6971
git clean -dfx
72+
git remote add tokened_docs https://IntelPython:${{ secrets.GITHUB_TOKEN }}@github.com/IntelPython/dpctl.git
73+
git fetch tokened_docs
7074
git checkout gh-pages
7175
cd master
7276
git rm -rf *
7377
mv ~/docs/* .
7478
git add .
7579
git commit -m "Latest docs."
76-
git push
77-
78-
79-
80-
80+
git push tokened_docs gh_pages
8181
# - name: Deploy docs
8282
# uses: peaceiris/actions-gh-pages@v3
8383
# with:

0 commit comments

Comments
 (0)