-
-
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.
feat(workflows): Add Doxygen GitHub Pages deployment workflow and upd…
…ate Flakkari RFC documentation
- Loading branch information
1 parent
89712b2
commit 63c8d64
Showing
3 changed files
with
64 additions
and
13 deletions.
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Doxygen GitHub Pages Deploy Action | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
doxygen: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Your Name" | ||
- name: Install Doxygen | ||
run: | | ||
sudo apt-get install doxygen | ||
- name: Generate Doxygen Documentation | ||
run: | | ||
doxygen Doxyfile.cfg | ||
- name: Create gh-pages branch | ||
run: | | ||
git checkout --orphan gh-pages | ||
- name: Fetch changes from remote | ||
run: | | ||
git fetch origin gh-pages | ||
- name: Merge changes from remote | ||
run: | | ||
git merge origin/gh-pages | ||
- name: Copy documentation to gh-pages branch | ||
run: | | ||
cp -r Docs/Flakkari/html/* . | ||
- name: Push documentation to gh-pages branch | ||
run: | | ||
git add . | ||
git commit -m "deploy(root): Deploying documentation to GitHub Pages" | ||
git pull origin gh-pages | ||
git push origin gh-pages | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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