-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (35 loc) Β· 1.11 KB
/
dokka.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
name: TerningPoint DesignSystem CI
on:
push:
branches: [ develop ]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up JDK 18
uses: actions/setup-java@v4
with:
java-version: 18
distribution: "temurin"
- name: Change gradlew permissions
run: chmod +x gradlew
- name: Create Local Properties
run: touch local.properties
- name: Set Local Properties
env:
BASE_URL: ${{ secrets.BASE_URL }}
NATIVE_APP_KEY: ${{ secrets.NATIVE_APP_KEY }}
NATIVEAPPKEY: ${{ secrets.NATIVEAPPKEY }}
run: |
echo base.url=\"$BASE_URL\" >> local.properties
echo native.app.key=\"$NATIVE_APP_KEY\" >> local.properties
echo nativeAppKey=\"$NATIVEAPPKEY\" >> local.properties
- name: Build Documentation
run: ./gradlew dokkaHtml
- name: Deploy Documentation to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
BRANCH: gh-pages
FOLDER: core/build/dokka/html