Skip to content

Commit 59979f6

Browse files
committed
Add new action to deploy to GitHub Pages
1 parent 813642f commit 59979f6

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-FileCopyrightText: 2025 Smart Robotics Lab, Imperial College London, Technical University of Munich
2+
# SPDX-License-Identifier: CC0-1.0
3+
name: Deploy documentation to Pages
4+
5+
on:
6+
push:
7+
branches: ["main"]
8+
# workflow_dispatch allows running this workflow manually.
9+
workflow_dispatch:
10+
11+
# Set the GITHUB_TOKEN permissions to allow deployment to GitHub Pages.
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow only one concurrent deployment.
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: false
21+
22+
jobs:
23+
deploy:
24+
environment:
25+
name: github-pages
26+
url: ${{ steps.deployment.outputs.page_url }}
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Install dependencies
30+
run: sudo apt-get update && sudo apt-get install -y doxygen graphviz
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
- name: Setup Pages
34+
uses: actions/configure-pages@v5
35+
- name: Build documentation
36+
run: doxygen
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: doc/html/
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)