Skip to content

Commit

Permalink
3rd party
Browse files Browse the repository at this point in the history
  • Loading branch information
baynezy committed Feb 10, 2024
1 parent a626298 commit 8af77ac
Showing 1 changed file with 6 additions and 48 deletions.
54 changes: 6 additions & 48 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,51 +12,9 @@ jobs:
push-documentation:
runs-on: ubuntu-latest
steps:
- name: Install Doxygen Portable
run: |
sudo apt-get update
sudo apt-get install doxygen
sudo apt-get install graphviz
doxygen --version
- name: Set config settings
run: |
git config --global user.email "noreply@action.bot"
git config --global user.name "GitHub Action Bot"
git config --global push.default matching
- name: Clone gh-pages branch
env:
GIT_TOKEN: ${{ secrets.PUBLISH_DOCS_TOKEN }}
run: |
mkdir gh-pages
git clone --branch=gh-pages https://$GIT_TOKEN:x-oauth-basic@github.com/baynezy/SiteWarmer.git ./gh-pages
cd gh-pages
git status
- name: Clean gh-pages folder
run: |
cd gh-pages
git status
chmod go+w ./search
pwd
ls -l
find . -mindepth 1 -path ./.git -prune -o -exec rm -rf {} \;
git status
- name: Generate documentation
run: |
doxygen doxygen.config
- name: Copy contents of documentation folder into gh-pages folder
run: |
cp -r ../documentation/html/* .
git status
- name: Commit and push changes
run: |
git add --all
git status
git diff-index --quiet HEAD || git commit -m "skip ci - static site regeneration"
git status
git push
- uses: DenverCoder1/doxygen-github-pages-action@v1.3.0
with:
github_token: ${{ secrets.PUBLISH_DOCS_TOKEN }}
branch: gh-pages
folder: .
config_file: doxygen.config

0 comments on commit 8af77ac

Please sign in to comment.