-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (56 loc) · 1.42 KB
/
docs.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
name: Create KDoc documentation
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build-dokkaHtml:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up android build
uses: ./.github/actions/set-up
- name: Run dokka
run: |
./gradlew externals:build
./gradlew dokkaHtml
- name: Upload docs
uses: actions/upload-artifact@v4
with:
name: kdoc
path: ml_inference_offloading/build/dokka/html
build-jekyll:
runs-on: ubuntu-22.04
needs: build-dokkaHtml
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download DokkaHTML
uses: actions/download-artifact@v4
with:
name: kdoc
path: ./KDoc
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy-gh-pages:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-22.04
needs: build-jekyll
permissions:
pages: write
id-token: write
environment:
# environment created automatically by GitHub
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4