diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c2a0b181..b5845762 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,4 @@ -name: Build web5_cli release artifacts +name: Build release artifacts on: release: @@ -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/upload-release-assets@v3.0 @@ -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 \ No newline at end of file