mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 18:11:38 +08:00
Update doxygen_build_deploy.yml
This commit is contained in:
parent
d4c1ec9705
commit
408f9c1229
13
.github/workflows/doxygen_build_deploy.yml
vendored
13
.github/workflows/doxygen_build_deploy.yml
vendored
@ -21,7 +21,10 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout Repo
|
||||||
|
run: |
|
||||||
|
git clone -o mine git@github.com:jkriege2/JKQtPlotter.git $GITHUB_WORKSPACE/JKQtPlotter
|
||||||
|
git clone -o mine git@github.com:jkriege2/JKQtPlotter.git $GITHUB_WORKSPACE/JKQtPlotter_doc
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@ -29,24 +32,30 @@ jobs:
|
|||||||
sudo apt-get update --fix-missing
|
sudo apt-get update --fix-missing
|
||||||
sudo apt-get install -f
|
sudo apt-get install -f
|
||||||
sudo apt -y install build-essential doxygen graphviz doxygen-latex
|
sudo apt -y install build-essential doxygen graphviz doxygen-latex
|
||||||
|
|
||||||
- name: Create empty BRANCH gh-pages
|
- name: Create empty BRANCH gh-pages
|
||||||
run: |
|
run: |
|
||||||
|
cd JKQtPlotter_doc
|
||||||
git branch | grep -q "gh-pages" && git branch -D gh-pages
|
git branch | grep -q "gh-pages" && git branch -D gh-pages
|
||||||
git branch gh-pages
|
git branch gh-pages
|
||||||
git checkout gh-pages
|
git checkout gh-pages
|
||||||
|
cd ..
|
||||||
|
|
||||||
- name: Run Doxygen
|
- name: Run Doxygen
|
||||||
run: |
|
run: |
|
||||||
|
cd JKQtPlotter
|
||||||
cd doc
|
cd doc
|
||||||
doxygen --version
|
doxygen --version
|
||||||
doxygen Doxyfile
|
doxygen Doxyfile
|
||||||
echo "" > html/.nojekyll
|
echo "" > html/.nojekyll
|
||||||
cd ..
|
cd ..
|
||||||
|
cd ..
|
||||||
|
|
||||||
- name: Deploy to gh-pages
|
- name: Deploy to gh-pages
|
||||||
run: |
|
run: |
|
||||||
|
cd JKQtPlotter_doc
|
||||||
rm -rf *
|
rm -rf *
|
||||||
mv doc/html .
|
mv ../JKQtPlotter/doc/html .
|
||||||
git add **
|
git add **
|
||||||
git commit -am "Generated API doc"
|
git commit -am "Generated API doc"
|
||||||
git push -f mine gh-pages:gh-pages
|
git push -f mine gh-pages:gh-pages
|
||||||
|
Loading…
Reference in New Issue
Block a user