Skip to content

Commit

Permalink
chore: add github pages
Browse files Browse the repository at this point in the history
aallam committed Oct 14, 2023
1 parent de07050 commit e322317
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ jobs:
run: ./gradlew :ktoken:jsTest

test-macos:
name: Test (JS)
name: Test (MacOS)
runs-on: macos-11
needs: lint
steps:
@@ -104,3 +104,35 @@ jobs:

- name: Build
run: ./gradlew :ktoken:macosX64Test

publish-docs:
runs-on: ubuntu-latest
needs: [ test-jvm, test-js, test-macos ]
if: github.repository == 'aallam/openai-kotlin' && github.ref == 'refs/heads/main'
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Configure JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build docs
run: ./gradlew dokkaHtmlMultiModule

- name: Deploy docs
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
branch: gh-pages
folder: docs
single-commit: true

0 comments on commit e322317

Please sign in to comment.