Change workflow to generate a proper docset

This commit is contained in:
dimaguy 2022-09-20 22:23:35 +00:00 committed by GitHub
parent db0dc541a7
commit 1369f25871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,11 @@ jobs:
git clone --branch=master --single-branch --depth 1 https://github.com/devkitPro/3ds-examples examples
cd libctru
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 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1
@ -38,3 +43,28 @@ jobs:
FOLDER: libctru/docs/html
CLEAN: 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