Skip to content

Commit

Permalink
Fixes skupperproject#668 - Generate and publish Doxygen
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Aug 7, 2022
1 parent 2aa053b commit 86086c1
Show file tree
Hide file tree
Showing 2 changed files with 2,706 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -792,3 +792,53 @@ jobs:
- name: Output
if: ${{ ! cancelled() }}
run: cat target/rat.txt || echo "Unable to print output"

doxygen-build:

runs-on: ubuntu-22.04

steps:

- uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y doxygen graphviz
- name: Run Doxygen
run: doxygen

- name: Upload rendered HTML
uses: actions/upload-pages-artifact@v1
with:
path: html/

doxygen-publish:

needs: doxygen-build
if: github.ref_name == 'main'

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:

# https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
Loading

0 comments on commit 86086c1

Please sign in to comment.