From 59eeb8120e3b709956c53239dcbd738fcdbc1e65 Mon Sep 17 00:00:00 2001 From: nitro-neal <5314059+nitro-neal@users.noreply.github.com> Date: Wed, 18 Sep 2024 11:23:10 -0700 Subject: [PATCH] Add Dokka (#120) * Add Dokka * update * update * dokka github pages * rename --- .github/workflows/ci.yml | 13 +++++++++++++ .github/workflows/release.yml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ca0eeec..6541c386 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -137,6 +137,19 @@ jobs: - name: Lint run: just lint + rust-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Init Hermit + uses: cashapp/activate-hermit@v1 + with: + cache: true + - name: Setup + run: just setup + - name: Test + run: just test + kotlin-build-test-deploy-snapshot: needs: - build_aarch64_apple_darwin diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 77d76197..288ff7d7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -179,3 +179,37 @@ jobs: SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} SIGN_KEY_PASS: ${{ secrets.GPG_SECRET_PASSPHRASE }} SIGN_KEY: ${{ secrets.GPG_SECRET_KEY }} + + kotlin-docs: + permissions: + contents: read + pages: write + id-token: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + distribution: "adopt" + java-version: "11" + - uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - run: mvn dokka:dokka + working-directory: bound/kt + - run: mkdir -p _site/kt/${GITHUB_REF_NAME} && mv bound/kt/target/dokka/* _site/kt/${GITHUB_REF_NAME} + env: + GITHUB_REF_NAME: ${{ github.ref_name }} + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: _site + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4