-
-
Notifications
You must be signed in to change notification settings - Fork 12
65 lines (55 loc) · 1.64 KB
/
Docs.yaml
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
name: Docs
on:
push:
branches:
- main
paths:
- '**/*'
- '!**/.github/workflows/**'
jobs:
mkdocs:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v4
# https://github.com/mkdocs/mkdocs/issues/2370
with:
fetch-depth: 0
- name: Set up Google Services
run: |
touch app/google-services.json
echo "${CONTENT// /}" | base64 --decode > app/google-services.json
env:
CONTENT: ${{ secrets.GOOGLE_SERVICES }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
cache: gradle
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Set up Signing Key
run: |
touch app/key.jks
echo "${KEYSTORE// /}" | base64 --decode > app/key.jks
touch keystore.properties
echo "${KEYSTORE_PROPERTIES// /}" | base64 --decode > keystore.properties
env:
KEYSTORE: ${{ secrets.KEYSTORE }}
KEYSTORE_PROPERTIES: ${{ secrets.KEYSTORE_PROPERTIES }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Generate Docs
run: |
pip install mkdocs mkdocs-material Pygments
./gradlew dokkaGfmMultiModule --no-configuration-cache
mv build/dokka/gfmMultiModule docs
cat README.md > docs/index.md
mkdocs gh-deploy
# https://github.com/softprops/action-gh-release/issues/236
permissions:
contents: write