generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Dokka docs in release workflow (#353)
- Loading branch information
1 parent
94801eb
commit 26466e2
Showing
1 changed file
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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] | ||
|
@@ -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 |