Update API doc build to upload to GH pages

This commit is contained in:
Marcus Weseloh 2020-12-13 14:48:51 +01:00 committed by GitHub
parent 9cd0fbdbf8
commit 9f853e7d53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 5 deletions

View File

@ -14,6 +14,8 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install Dependencies
run: sudo apt-get install doxygen xsltproc
@ -31,8 +33,16 @@ jobs:
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config $BUILD_TYPE --target doxygen
- name: Upload Artifacts
uses: actions/upload-artifact@v2
- name: Install SSH Client 🔑
uses: webfactory/ssh-agent@v0.4.1
with:
name: api_docs
path: ${{runner.workspace}}/build/doc/api/html
ssh-private-key: ${{ secrets.DEPLOY_API_TOKEN }}
- name: Publish API Docs to GH Pages
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
FOLDER: ${{runner.workspace}}/build/doc/api/html/~
REPOSITORY_NAME: FluidSynth/fluidsynth.github.io
BRANCH: main
TARGET_FOLDER: api/
SSH: true