-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: use github actions for generating documentation
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Deploy site | ||
|
||
on: | ||
push: | ||
branches: [ c3d-docs ] | ||
|
||
jobs: | ||
doc-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Set up Doxygen | ||
run: sudo apt install doxygen | ||
|
||
- name: Display Doxygen version | ||
run: echo "Doxygen version $(doxygen -v)" | ||
|
||
- name: Generate libctru tags | ||
run: | | ||
git clone --branch=master --single-branch --depth 1 https://github.com/devkitPro/libctru | ||
cd libctru/libctru | ||
doxygen | ||
- name: Build documentation | ||
run: CTRU_DOCPATH="https://libctru.devkitpro.org/" doxygen | ||
|
||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages # The branch the action should deploy to. | ||
FOLDER: docs/html # The folder the action should deploy. | ||
CLEAN: true # Automatically remove deleted files from the deploy branch |
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