|
1 | | -# This is a basic workflow to help you get started with Actions |
| 1 | +name: Create document |
2 | 2 |
|
3 | | -name: CI |
4 | | - |
5 | | -# Controls when the workflow will run |
6 | 3 | on: |
7 | | - # Triggers the workflow on push or pull request events but only for the "main" branch |
8 | 4 | push: |
9 | | - branches: [ "main" ] |
10 | | - pull_request: |
11 | | - branches: [ "main" ] |
12 | | - |
13 | | - # Allows you to run this workflow manually from the Actions tab |
| 5 | + branches: ["main"] |
14 | 6 | workflow_dispatch: |
15 | 7 |
|
16 | | -# A workflow run is made up of one or more jobs that can run sequentially or in parallel |
| 8 | +permissions: |
| 9 | + contents: read |
| 10 | + pages: write |
| 11 | + id-token: write |
| 12 | + |
| 13 | +concurrency: |
| 14 | + group: "pages" |
| 15 | + cancel-in-progress: true |
| 16 | + |
17 | 17 | jobs: |
18 | | - # This workflow contains a single job called "build" |
19 | | - build: |
20 | | - # The type of runner that the job will run on |
| 18 | + deploy: |
| 19 | + environment: |
| 20 | + name: github-pages |
| 21 | + url: ${{ steps.deployment.outputs.page_url }} |
21 | 22 | runs-on: ubuntu-latest |
22 | | - |
23 | | - # Steps represent a sequence of tasks that will be executed as part of the job |
24 | 23 | steps: |
25 | | - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
26 | | - - uses: actions/checkout@v3 |
27 | | - |
28 | | - # Runs a single command using the runners shell |
29 | | - - name: Run a one-line script |
30 | | - run: echo Hello, world! |
31 | | - |
32 | | - # Runs a set of commands using the runners shell |
33 | | - - name: Run a multi-line script |
34 | | - run: | |
35 | | - echo Add other actions to build, |
36 | | - echo test, and deploy your project. |
| 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 |
| 36 | + with: |
| 37 | + path: './docs/html' |
| 38 | + - name: Deploy to GitHub Pages |
| 39 | + id: deployment |
| 40 | + uses: actions/deploy-pages@v1 |
0 commit comments