Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build dokka docs in CI #353

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build web5_cli release artifacts
name: Build release artifacts

on:
release:
Expand Down Expand Up @@ -31,7 +31,7 @@ jobs:
run: rustup toolchain install stable
- name: cargo build
run: |
cargo build --target x86_64-apple-darwin --release --package web5_cli --features x86_64_apple_darwin
cargo build --target x86_64-apple-darwin --release --package web5_cli
cp -v target/x86_64-apple-darwin/release/web5_cli web5_cli-x86_64-apple-darwin
- name: upload release asset
uses: AButler/[email protected]
Expand Down Expand Up @@ -70,3 +70,35 @@ jobs:
with:
files: web5_cli-x86_64-unknown-linux-musl
repo-token: ${{ secrets.GITHUB_TOKEN }}

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 _site && mv bound/kt/target/dokka _site/kt
- 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
Loading