Skip to content

Commit

Permalink
Build Dokka docs in release workflow (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-block authored Sep 13, 2024
1 parent 94801eb commit 26466e2
Showing 1 changed file with 34 additions and 2 deletions.
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

0 comments on commit 26466e2

Please sign in to comment.