From 8f289692058bc371350086f16ee1b036ad30c007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Gro=C3=9F?= Date: Sat, 19 Feb 2022 18:02:59 +0100 Subject: [PATCH] Fix command permissions for API-docs GitHub Actions Add jsdoc build and deploy via GitHub Actions --- .github/workflows/master_deploy_apidocs.yml | 39 +++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/master_deploy_apidocs.yml diff --git a/.github/workflows/master_deploy_apidocs.yml b/.github/workflows/master_deploy_apidocs.yml new file mode 100644 index 0000000000..35f2fa95ba --- /dev/null +++ b/.github/workflows/master_deploy_apidocs.yml @@ -0,0 +1,39 @@ +name: Master API-docs CI Build and Deploy + +on: + push: + branches: + - master + +jobs: + build_site: + runs-on: ubuntu-20.04 + + name: Build and deploy API-docs + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies + working-directory: tools/jsdoc + run: | + sudo apt update + sudo apt install npm nodejs + npm install jsdoc -g + npm install + + - name: Build API-docs + working-directory: tools/jsdoc + shell: bash + run: | + jsdoc root.js -r api-mainpage.md -c config.json -d output + + - name: Deploy API-docs + uses: SamKirkland/FTP-Deploy-Action@4.2.0 + with: + server: ftp.tuxfamily.org + username: ${{ secrets.GHA_JSDOC_FTP_USER }} + password: ${{ secrets.GHA_JSDOC_FTP_PASS }} + local-dir: ./tools/jsdoc/output/ + server-dir: overte/apidocs.overte.org-web/htdocs/ + exclude: | + **/staging/**