Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 37 additions & 18 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,50 @@
name: Deploy Doxygen Documentation
name: Deploy Documentation to GitHub Pages

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
branches: [ main, develope ]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest

steps:
- name: Checkout
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Doxygen
uses: mattnotmitt/doxygen-action@v1.1.0

- name: Generate Documentation

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y g++ make doxygen graphviz

- name: Generate documentation
run: |
cd lab2
echo "Current directory: $(pwd)"
echo "Checking if Doxyfile exists:"
ls -la Doxyfile
echo "Doxygen version:"
doxygen --version
doxygen Doxyfile

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./lab2/docs/html
destination_dir: docs
path: docs/html

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading