-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0db919f
commit 97da69b
Showing
1 changed file
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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!"; | ||
|