Skip to content

Commit 5354365

Browse files
authored
Update main.yaml
1 parent bf0ec27 commit 5354365

File tree

1 file changed

+21
-36
lines changed

1 file changed

+21
-36
lines changed

.github/workflows/main.yaml

+21-36
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,29 @@
11
name: Doxygen Action
22

3-
on:
4-
push:
5-
tags:
6-
- 'v*'
3+
on: [push, pull_request]
74

85
jobs:
6+
97
build:
108
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v4
13-
14-
- name: Download Custom CSS File
15-
run: curl -o doxygen-awesome.css https://raw.githubusercontent.com/jothepro/doxygen-awesome-css/main/doxygen-awesome.css
16-
17-
- name: Doxygen Action
18-
uses: mattnotmitt/[email protected]
19-
with:
20-
doxyfile-path: "./Doxyfile"
21-
working-directory: "."
229

23-
- name: Deploy
24-
uses: peaceiris/actions-gh-pages@v3
25-
with:
26-
github_token: ${{ secrets.GH_PAGES_TOKEN }}
27-
publish_dir: ./Docs/html
28-
29-
create_release:
30-
runs-on: ubuntu-latest
31-
needs: build
32-
if: startsWith(github.ref, 'refs/tags/v')
3310
steps:
34-
- name: Create Release
35-
uses: actions/create-release@v1
36-
with:
37-
tag_name: ${{ github.ref }}
38-
release_name: Release ${{ github.ref }}
39-
body: |
40-
Release ${{ github.ref }} is ready!
41-
draft: false
42-
prerelease: false
43-
env:
44-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11+
- name: Checkout the repository
12+
uses: actions/checkout@v4
13+
14+
- name: Download Custom CSS File
15+
run: curl -o doxygen-awesome.css https://raw.githubusercontent.com/jothepro/doxygen-awesome-css/main/doxygen-awesome.css
16+
17+
- name: Doxygen Action
18+
uses: mattnotmitt/[email protected]
19+
with:
20+
# Path to Doxyfile
21+
doxyfile-path: "./Doxyfile"
22+
# Working directory
23+
working-directory: "."
24+
25+
- name: Deploy
26+
uses: peaceiris/actions-gh-pages@v3
27+
with:
28+
github_token: ${{ secrets.GH_PAGES_TOKEN }}
29+
publish_dir: ./Docs/html

0 commit comments

Comments
 (0)