Skip to content

Commit

Permalink
Build docs and push to GH pages in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-block committed Sep 11, 2024
1 parent 0ca1461 commit 0f371d6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
27 changes: 27 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0f371d6

Please sign in to comment.