forked from doldecomp/melee
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (57 loc) · 1.68 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Publish
on:
push:
branches:
- master
# 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
jobs:
# Single deploy job since we're just deploying
publish:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: "true"
- name: Checkout Doxygen Awesome repo
uses: actions/checkout@v3
with:
repository: jothepro/doxygen-awesome-css
path: tools/doxygen-awesome-css
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: doxygen graphviz
version: 1.0
- name: Create build directory
run: mkdir -p build/doxygen
- name: Generate Doxygen documentation
run: doxygen Doxyfile
shell: bash
- name: Create .nojekyll (ensures pages with underscores work on gh pages)
run: touch build/doxygen/html/.nojekyll
shell: bash
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- run: pip install -r requirements.txt
- run: python tools/m2ctx/m2ctx.py -pqr
- run: cp build/ctx.html build/doxygen/html
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: build/doxygen/html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1