Change workflow to generate a proper docset
This commit is contained in:
parent
db0dc541a7
commit
1369f25871
30
.github/workflows/doxygen.yaml
vendored
30
.github/workflows/doxygen.yaml
vendored
@ -29,6 +29,11 @@ jobs:
|
|||||||
git clone --branch=master --single-branch --depth 1 https://github.com/devkitPro/3ds-examples examples
|
git clone --branch=master --single-branch --depth 1 https://github.com/devkitPro/3ds-examples examples
|
||||||
cd libctru
|
cd libctru
|
||||||
CTRU_VERSION=${{ steps.vars.outputs.tag }} doxygen Doxyfile
|
CTRU_VERSION=${{ steps.vars.outputs.tag }} doxygen Doxyfile
|
||||||
|
- name: Publish docs to GH Actions
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
path: libctru/docs/*
|
||||||
|
name: docs
|
||||||
|
|
||||||
- name: Deploy 🚀
|
- name: Deploy 🚀
|
||||||
uses: JamesIves/github-pages-deploy-action@3.7.1
|
uses: JamesIves/github-pages-deploy-action@3.7.1
|
||||||
@ -38,3 +43,28 @@ jobs:
|
|||||||
FOLDER: libctru/docs/html
|
FOLDER: libctru/docs/html
|
||||||
CLEAN: true
|
CLEAN: true
|
||||||
SINGLE_COMMIT: true
|
SINGLE_COMMIT: true
|
||||||
|
|
||||||
|
generatedocset:
|
||||||
|
name: Generate Docset
|
||||||
|
runs-on: macos-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Pick up artifacts
|
||||||
|
uses: actions/download-artifact@master
|
||||||
|
with:
|
||||||
|
name: docs
|
||||||
|
path: docs
|
||||||
|
- name: Set up docsetutil
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/SwiftDocOrg/DocSetUtil.git
|
||||||
|
cd DocSetUtil
|
||||||
|
make install
|
||||||
|
- name: Build Docset
|
||||||
|
run: |
|
||||||
|
cd docs/html/
|
||||||
|
make XCODE_INSTALL=../../DocSetUtil/Developer
|
||||||
|
- name: Publish docs to GH Actions
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
path: docs/html/org.devkitPro.libctru.docset/
|
||||||
|
name: org.devkitpro.libctru.docset
|
||||||
|
Loading…
Reference in New Issue
Block a user