Skip to content

Commit

Permalink
feat: generate rust docs in docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
harshkhandeparkar committed Jul 25, 2023
1 parent 599da5b commit d035526
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- plugin

jobs:
gen_docs:
Expand All @@ -30,14 +31,21 @@ jobs:
node-version: 18.x
cache: 'pnpm'

- name: Generate docs
- name: Generate JS docs
run: |
pnpm install
pnpm run doc
- name: Generate Rust Docs
run: |
rustup update stable && rustup default stable
pushd plugin/
cargo doc --no-deps
mv target/docs/tauri_plugin_settings ../docs/
- uses: EndBug/add-and-commit@v9 # You can change this to use a specific version.
with:
add: 'docs -f'
commit: --signoff
message: 'docs: updated API documentation'
push: origin docs -f
push: origin docs -f

0 comments on commit d035526

Please sign in to comment.