-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from rust3ds/feature/gh-pages-docs
First pass of generating docs to github pages
- Loading branch information
Showing
2 changed files
with
33 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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
container: devkitpro/devkitarm | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
|
||
- uses: rust3ds/test-runner/setup@v1 | ||
with: | ||
toolchain: nightly | ||
|
||
- name: Build workspace docs | ||
run: cargo 3ds --verbose doc --verbose --no-deps --workspace | ||
|
||
- name: Upload generated docs | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: ./target/armv6k-nintendo-3ds/doc | ||
|
||
- name: Deploy GitHub pages | ||
uses: actions/deploy-pages@v2 | ||
|