-
Notifications
You must be signed in to change notification settings - Fork 41
46 lines (38 loc) · 1.52 KB
/
websitedeploy.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
name: Publish the website
on: workflow_dispatch
jobs:
docusaurus-deploy:
runs-on: macos-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: "17"
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Find Last Release
id: last_release
uses: InsonusK/[email protected]
with:
myToken: ${{ github.token }}
view_top: 1
- name: Build Docusaurus
run: ./gradlew replaceValuesDocusaurus -PLATEST_GITHUB_VERSION=${{ steps.last_release.outputs.tag_name }} --no-daemon --stacktrace
env:
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
- name: Build Dokka
run: ./gradlew dokkaHtmlMultiModule --no-daemon --stacktrace
env:
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
- name: Copy Dokka
run: |
mv build/dokka/htmlMultiModule website/static
- name: Publish website
run: |
git config --global user.email "[email protected]"
git config --global user.name "Kevin Galligan"
cd website
npm install
GIT_USER=ciuser GIT_PASS=${{ secrets.GITHUB_TOKEN }} yarn deploy