Skip to content

Commit

Permalink
Documentation build attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
henricasanova committed May 2, 2024
1 parent 0db919f commit 97da69b
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,27 @@ jobs:
sudo apt-get -y install python3-sphinx
- name: Build and Deploy Documentation
env:
TOKEN_GITHUB: ${{ secrets.TOKEN_GITHUB }}
run: |
#git clone https://github.com/frs69wq/file-system-module.git
cd file-system-module
cd file-system-module/build
make doc
cd ../..
cp -r ./docs/ $HOME/gh-pages-to-deploy;
echo "Updating gh-pages branch..."
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git clone --quiet --branch=gh-pages https://${TOKEN_GITHUB}@github.com/henricasanova/file-system-module.git gh-pages > /dev/null;
cd gh-pages
cp -Rf $HOME/gh-pages-to-deploy/* .;
touch .nojekyll;
git add -f .;
git diff-index --quiet HEAD || git commit -m "GitHub build $GITHUB_RUN_NUMBER";
git push -fq origin gh-pages > /dev/null;
echo "Done updating gh-pages!";
Expand Down

0 comments on commit 97da69b

Please sign in to comment.