From 0f371d6dfb599c56ad103fe435c6f9c8df3e21ab Mon Sep 17 00:00:00 2001 From: finn Date: Wed, 11 Sep 2024 12:22:31 -0700 Subject: [PATCH] Build docs and push to GH pages in release workflow --- .github/workflows/ci.yml | 19 ------------------- .github/workflows/release.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db1c6944..01a627cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -395,22 +395,3 @@ jobs: with: name: rust-test-results path: test-results/rust-test-results.xml - - kotlin-docs: - 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" - # Cache Maven repo - - 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 \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c2a0b181..bf59865f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -70,3 +70,30 @@ jobs: with: files: web5_cli-x86_64-unknown-linux-musl repo-token: ${{ secrets.GITHUB_TOKEN }} + + kotlin-docs: + 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 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: bound/kt/target/dokka + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file