mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
44 lines
1 KiB
YAML
44 lines
1 KiB
YAML
# Copyright 2022-2024 Overte e.V.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
name: Master API-docs CI Build and Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build_site:
|
|
runs-on: ubuntu-22.04
|
|
|
|
name: Build and deploy API-docs
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- 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@v4.3.5
|
|
with:
|
|
server: www531.your-server.de
|
|
protocol: ftps
|
|
username: ${{ secrets.GHA_HETZNER_APIDOCS_FTP_USER }}
|
|
password: ${{ secrets.GHA_HETZNER_APIDOCS_FTP_PASS }}
|
|
local-dir: ./tools/jsdoc/output/
|
|
server-dir: /
|
|
exclude: |
|
|
**/staging/**
|
|
.htaccess
|