Skip to content

Commit 3d583f9

Browse files
authored
Merge pull request #14 from Gleb-Shall/develope
fix GitHub pages
2 parents ee3f3b8 + 837b683 commit 3d583f9

2 files changed

Lines changed: 393 additions & 18 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,50 @@
1-
name: Deploy Doxygen Documentation
1+
name: Deploy Documentation to GitHub Pages
22

33
on:
44
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
5+
branches: [ main, develope ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
816

917
jobs:
1018
build-and-deploy:
19+
name: Build and Deploy
1120
runs-on: ubuntu-latest
1221

1322
steps:
14-
- name: Checkout
23+
- name: Checkout code
1524
uses: actions/checkout@v4
16-
17-
- name: Setup Doxygen
18-
uses: mattnotmitt/doxygen-action@v1.1.0
19-
20-
- name: Generate Documentation
25+
26+
- name: Install dependencies
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y g++ make doxygen graphviz
30+
31+
- name: Generate documentation
2132
run: |
22-
cd lab2
33+
echo "Current directory: $(pwd)"
34+
echo "Checking if Doxyfile exists:"
35+
ls -la Doxyfile
36+
echo "Doxygen version:"
37+
doxygen --version
2338
doxygen Doxyfile
24-
25-
- name: Deploy to GitHub Pages
26-
uses: peaceiris/actions-gh-pages@v3
27-
if: github.ref == 'refs/heads/main'
39+
40+
- name: Setup Pages
41+
uses: actions/configure-pages@v4
42+
43+
- name: Upload artifact
44+
uses: actions/upload-pages-artifact@v3
2845
with:
29-
github_token: ${{ secrets.GITHUB_TOKEN }}
30-
publish_dir: ./lab2/docs/html
31-
destination_dir: docs
46+
path: docs/html
47+
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)