Skip to content

Commit aec9335

Browse files
committed
ドキュメント生成のワークフローを修正
1 parent d4929f8 commit aec9335

1 file changed

Lines changed: 31 additions & 8 deletions

File tree

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,40 @@
11
name: Create document
22

33
on:
4-
pull_request:
5-
types: [closed]
6-
branches: [ "main" ]
4+
push:
5+
branches: ["main"]
76
workflow_dispatch:
87

8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
16+
917
jobs:
10-
create-document:
18+
deploy:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
1122
runs-on: ubuntu-latest
1223
steps:
13-
- uses: DenverCoder1/doxygen-github-pages-action@v1
24+
- name: Checkout
25+
uses: actions/checkout@v3
26+
- name: Setup Pages
27+
uses: actions/configure-pages@v2
28+
- name: Install Doxygen
29+
run: sudo apt-get install doxygen -y
30+
shell: bash
31+
- name: Generate Doxygen Documentation
32+
run: doxygen
33+
shell: bash
34+
- name: Upload artifact
35+
uses: actions/upload-pages-artifact@v1
1436
with:
15-
github_token: ${{ secrets.GITHUB_TOKEN }}
16-
branch: main
17-
folder: docs/html
37+
path: './docs/html'
38+
- name: Deploy to GitHub Pages
39+
id: deployment
40+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)