Skip to content

Commit

Permalink
docs: use github actions for generating documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
oreo639 committed Aug 6, 2022
1 parent ee3c2ab commit 90ad127
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/doxygen.yaml
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

0 comments on commit 90ad127

Please sign in to comment.